oleaut32/tests: Fix tmarshal tests on win9x.
This commit is contained in:
parent
a7794bcb50
commit
c81b2b2c74
|
@ -701,10 +701,12 @@ typedef struct KindaEnum
|
||||||
static HRESULT register_current_module_typelib(void)
|
static HRESULT register_current_module_typelib(void)
|
||||||
{
|
{
|
||||||
WCHAR path[MAX_PATH];
|
WCHAR path[MAX_PATH];
|
||||||
|
CHAR pathA[MAX_PATH];
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
ITypeLib *typelib;
|
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);
|
hr = LoadTypeLib(path, &typelib);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
|
|
Loading…
Reference in New Issue