From 088690a4ba5ff438b7f2d51499aa52f52e1ab04e Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sat, 18 Jan 2003 16:27:54 +0000 Subject: VoxWare hack from MPlayer CVS patchset: 3957 CVS date: 2003/01/18 16:27:54 --- src/libw32dll/wine/win32.c | 12 ++++++++---- 1 file 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; } -- cgit v1.2.3