Commit c81b2b2c authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

oleaut32/tests: Fix tmarshal tests on win9x.

parent a7794bcb
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment