[PATCH] oleaut32/tests: Run typelib tests on win9x

Detlef Riekenberg wine.dev at web.de
Sun Jul 20 17:17:55 CDT 2008


---
 dlls/oleaut32/tests/typelib.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/tests/typelib.c b/dlls/oleaut32/tests/typelib.c
index 3479c18..868470d 100644
--- a/dlls/oleaut32/tests/typelib.c
+++ b/dlls/oleaut32/tests/typelib.c
@@ -672,11 +672,13 @@ static void test_inheritance(void)
     HREFTYPE href;
     FUNCDESC *pFD;
     WCHAR path[MAX_PATH];
+    CHAR pathA[MAX_PATH];
     static const WCHAR tl_path[] = {'.','\\','m','i','d','l','_','t','m','a','r','s','h','a','l','.','t','l','b',0};
 
     BOOL use_midl_tlb = 0;
 
-    GetModuleFileNameW(NULL, path, MAX_PATH);
+    GetModuleFileNameA(NULL, pathA, MAX_PATH);
+    MultiByteToWideChar(CP_ACP, 0, pathA, -1, path, MAX_PATH);
 
     if(use_midl_tlb)
         memcpy(path, tl_path, sizeof(tl_path));
-- 
1.5.4.3


--=-IwCJU0J2Za06/O463dsp--




More information about the wine-patches mailing list