diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-01-18 16:27:54 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-01-18 16:27:54 +0000 |
commit | 088690a4ba5ff438b7f2d51499aa52f52e1ab04e (patch) | |
tree | 6f21ec72c78eaba7d7b363fe8ea16e745fb97f98 | |
parent | de1a1c4460de2ceab969466d479a372e484d291a (diff) | |
download | xine-lib-088690a4ba5ff438b7f2d51499aa52f52e1ab04e.tar.gz xine-lib-088690a4ba5ff438b7f2d51499aa52f52e1ab04e.tar.bz2 |
VoxWare hack from MPlayer
CVS patchset: 3957
CVS date: 2003/01/18 16:27:54
-rw-r--r-- | src/libw32dll/wine/win32.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/libw32dll/wine/win32.c b/src/libw32dll/wine/win32.c index 00fcabb4f..8f4ca3ba1 100644 --- a/src/libw32dll/wine/win32.c +++ b/src/libw32dll/wine/win32.c @@ -3175,7 +3175,7 @@ const GUID IID_IClassFactory = {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} }; -static long WINAPI expCoCreateInstance(GUID* rclsid, struct IUnknown* pUnkOuter,
+static long WINAPI expCoCreateInstance(GUID* rclsid, struct IUnknown* pUnkOuter, long dwClsContext, const GUID* riid, void** ppv) { int i; @@ -3298,9 +3298,13 @@ static HANDLE WINAPI expFindFirstFileA(LPCSTR s, LPWIN32_FIND_DATAA lpfd) return FILE_HANDLE_quicktimeqts; } #endif - dbgprintf("FindFirstFileA(0x%x='%s', 0x%x) => 0\n", s, s, lpfd); - strcpy(lpfd->cFileName, "msms001.vwp"); - strcpy(lpfd->cAlternateFileName, "msms001.vwp"); + if(strstr(s, "*.vwp")){ + // hack for VoxWare codec plugins: + dbgprintf("FindFirstFileA(0x%x='%s', 0x%x) => 0\n", s, s, lpfd); + strcpy(lpfd->cFileName, "msms001.vwp"); + strcpy(lpfd->cAlternateFileName, "msms001.vwp"); + return (HANDLE)0; + } return (HANDLE)-1; } |