# HG changeset patch # User alex # Date 1019349076 0 # Node ID 310c836e3fb30a31341ef0d8637490590aedea70 # Parent a306c3258e4dbe8c6d08fd1d96b13749b2a89e24 added _EH_prolog and some wsock32 funcs needed by mss1 codec -> mss1 codec works now diff -r a306c3258e4d -r 310c836e3fb3 loader/win32.c --- a/loader/win32.c Sun Apr 21 00:30:44 2002 +0000 +++ b/loader/win32.c Sun Apr 21 00:31:16 2002 +0000 @@ -3147,6 +3147,7 @@ { printf("CoCreateFreeThreadedMarshaler(%p, %p) called!\n", pUnkOuter, ppUnkInner); +// return 0; return ERROR_CALL_NOT_IMPLEMENTED; } @@ -3707,8 +3708,23 @@ return 1; } - - +/* these are needed for mss1 */ + +/* defined in stubs.s */ +void exp_EH_prolog(void); + +#include +static WINAPI inline unsigned long int exphtonl(unsigned long int hostlong) +{ +// dbgprintf("htonl(%x) => %x\n", hostlong, htonl(hostlong)); + return htonl(hostlong); +} + +static WINAPI inline unsigned long int expntohl(unsigned long int netlong) +{ +// dbgprintf("ntohl(%x) => %x\n", netlong, ntohl(netlong)); + return ntohl(netlong); +} struct exports { @@ -3900,6 +3916,7 @@ FF(fprintf,-1) FF(printf,-1) FF(getenv,-1) + FF(_EH_prolog,-1) }; struct exports exp_winmm[]={ FF(GetDriverModuleHandle, -1) @@ -3968,7 +3985,10 @@ FF(StringFromGUID2, -1) FF(InitCommonControls, 17) }; - +struct exports exp_wsock32[]={ + FF(htonl,8) + FF(ntohl,14) +}; struct exports exp_msdmo[]={ FF(memcpy, -1) // just test }; @@ -3987,6 +4007,7 @@ LL(ole32) LL(crtdll) LL(comctl32) + LL(wsock32) LL(msdmo) }; @@ -4109,7 +4130,7 @@ unfreecnt++; my_release(mem); } - printf("Total Unfree %d bytes cnt %d [%p,%d]\n",unfree, unfreecnt, last_alloc, alccnt); + dbgprintf("Total Unfree %d bytes cnt %d [%p,%d]\n",unfree, unfreecnt, last_alloc, alccnt); #endif g_tls = NULL; list = NULL;