diff options
author | 2001-12-11 14:56:21 +0000 | |
---|---|---|
committer | 2001-12-11 14:56:21 +0000 | |
commit | 10d760aa429ccbbdaef1a9bc2ebdde2f5457f4f4 (patch) | |
tree | 88cf9a5fa9cb8087dd17d00fe129bfe3dd38d1d4 | |
parent | 26fc72a94eed028fe90278ac00023d8754e00e05 (diff) |
do not crash with 3ivx and vivo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3458 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | loader/win32.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/loader/win32.c b/loader/win32.c index a87e080aab..de455eecb8 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -1188,8 +1188,9 @@ struct critsecs_list_t struct CRITSECT *cs_unix; }; -#undef CRITSECS_NEWTYPE -//#define CRITSECS_NEWTYPE 1 +/* 'NEWTYPE' is working with VIVO and 3ivX dll (no more segfaults) -- alex */ +//#undef CRITSECS_NEWTYPE +#define CRITSECS_NEWTYPE 1 #ifdef CRITSECS_NEWTYPE #define CRITSECS_LIST_MAX 20 @@ -1250,7 +1251,7 @@ void WINAPI expInitializeCriticalSection(CRITICAL_SECTION* c) printf("InitializeCriticalSection(%p) - no more space in list\n", c); return; } - printf("got unused space at %d\n", i); +// printf("got unused space at %d\n", i); cs = expmalloc(sizeof(struct CRITSECT)); if (!cs) { @@ -2156,7 +2157,9 @@ int WINAPI expLoadLibraryA(char* name) dbgprintf("Entering LoadLibraryA(%s)\n", name); // PIMJ and VIVO audio are loading kernel32.dll if (strcasecmp(name, "kernel32.dll") == 0 || strcasecmp(name, "kernel32") == 0) - return MODULE_HANDLE_kernel32; +// return MODULE_HANDLE_kernel32; + return ERROR_SUCCESS; /* yeah, we have also the kernel32 calls */ + /* exported -> do not return failed! */ result=LoadLibraryA(name); dbgprintf("Returned LoadLibraryA(0x%x='%s'), def_path=%s => 0x%x\n", name, name, def_path, result); @@ -2680,7 +2683,8 @@ int WINAPI expGetProcessVersion(int pid) } int WINAPI expGetCurrentThread(void) { - dbgprintf("GetCurrentThread()\n"); +#warning FIXME! + dbgprintf("GetCurrentThread() => %x\n", 0xcfcf9898); return 0xcfcf9898; } int WINAPI expGetOEMCP(void) @@ -3207,12 +3211,12 @@ void WINAPI expInitCommonControls(void) return; } +/* alex: implement this call! needed for 3ivx */ HRESULT WINAPI expCoCreateFreeThreadedMarshaler(void *pUnkOuter, void **ppUnkInner) { printf("CoCreateFreeThreadedMarshaler(%p, %p) called!\n", pUnkOuter, ppUnkInner); - return E_FAIL; -// return S_OK; + return ERROR_CALL_NOT_IMPLEMENTED; } |