[PATCH] oleaut32/tests: Fix tests on win9x
Detlef Riekenberg
wine.dev at web.de
Sun Jul 20 17:07:53 CDT 2008
---
dlls/oleaut32/tests/tmarshal.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index 7ddbe75..f705722 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -701,10 +701,12 @@ typedef struct KindaEnum
static HRESULT register_current_module_typelib(void)
{
WCHAR path[MAX_PATH];
+ CHAR pathA[MAX_PATH];
HRESULT hr;
ITypeLib *typelib;
- GetModuleFileNameW(NULL, path, MAX_PATH);
+ GetModuleFileNameA(NULL, pathA, MAX_PATH);
+ MultiByteToWideChar(CP_ACP, 0, pathA, -1, path, MAX_PATH);
hr = LoadTypeLib(path, &typelib);
if (SUCCEEDED(hr))
--
1.5.4.3
--=-ccOx7hbnncHKEw6I+mNb--
More information about the wine-patches
mailing list