diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-02-17 03:18:02 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-02-17 03:18:02 +0000 |
commit | ff725d8f795ca9b9ee7166c11d109871f580c21e (patch) | |
tree | 64dda3dc1b9868886bda68ed11dda63c123c0e75 /src/libw32dll/wine/driver.c | |
parent | 6adf7f8e7f8b42b877eb8b97de028915985618cf (diff) | |
download | xine-lib-ff725d8f795ca9b9ee7166c11d109871f580c21e.tar.gz xine-lib-ff725d8f795ca9b9ee7166c11d109871f580c21e.tar.bz2 |
- fix LDT clash with linuxthreads
- comment useless calls. some people really don't know what this thing does,
they probably think that lots of Setup_FS_Segment() all over will make
win32 gods happy. :)
- fix vfw (indeo) and quicktime segfaults
in short: xine now plays indeo, animatrix and the hulk trailers.
CVS patchset: 4178
CVS date: 2003/02/17 03:18:02
Diffstat (limited to 'src/libw32dll/wine/driver.c')
-rw-r--r-- | src/libw32dll/wine/driver.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libw32dll/wine/driver.c b/src/libw32dll/wine/driver.c index 8dea4b85f..7720a4975 100644 --- a/src/libw32dll/wine/driver.c +++ b/src/libw32dll/wine/driver.c @@ -85,7 +85,9 @@ LRESULT WINAPI SendDriverMessage(HDRVR hDriver, UINT message, __asm__ __volatile__ ("fsave (%0)\n\t": :"r"(&qw)); #endif +#ifdef LDT_paranoia Setup_FS_Segment(); +#endif STORE_ALL; result=module->DriverProc(module->dwDriverID, hDriver, message, lParam1, lParam2); @@ -108,7 +110,9 @@ void DrvClose(HDRVR hDriver) DRVR* d = (DRVR*)hDriver; if (d->hDriverModule) { +#ifdef LDT_paranoia Setup_FS_Segment(); +#endif if (d->DriverProc) { SendDriverMessage(hDriver, DRV_CLOSE, 0, 0); @@ -130,7 +134,9 @@ HDRVR DrvOpen(LPARAM lParam2) char unknown[0x124]; const char* filename = (const char*) ((ICOPEN*) lParam2)->pV1Reserved; +#ifdef LDT_paranoia Setup_LDT_Keeper(); +#endif printf("Loading codec DLL: '%s'\n",filename); hDriver = (NPDRVR) malloc(sizeof(DRVR)); @@ -139,7 +145,9 @@ HDRVR DrvOpen(LPARAM lParam2) memset((void*)hDriver, 0, sizeof(DRVR)); CodecAlloc(); +#ifdef LDT_paranoia Setup_FS_Segment(); +#endif hDriver->hDriverModule = LoadLibraryA(filename); if (!hDriver->hDriverModule) |