Commit 759f12c1 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

mscoree/tests: Use more A-functions to fix test failures on Win9x.

parent 167ab75f
...@@ -153,8 +153,9 @@ static void test_loadlibraryshim(void) ...@@ -153,8 +153,9 @@ static void test_loadlibraryshim(void)
const WCHAR gdidll[] = {'g','d','i','3','2','.','d','l','l',0}; const WCHAR gdidll[] = {'g','d','i','3','2','.','d','l','l',0};
HRESULT hr; HRESULT hr;
const WCHAR *latest = NULL; const WCHAR *latest = NULL;
CHAR latestA[MAX_PATH];
HMODULE hdll; HMODULE hdll;
WCHAR dllpath[MAX_PATH]; CHAR dllpath[MAX_PATH];
hr = pLoadLibraryShim(fusion, v1_1, NULL, &hdll); hr = pLoadLibraryShim(fusion, v1_1, NULL, &hdll);
ok(hr == S_OK || hr == E_HANDLE, "LoadLibraryShim failed, hr=%x\n", hr); ok(hr == S_OK || hr == E_HANDLE, "LoadLibraryShim failed, hr=%x\n", hr);
...@@ -162,10 +163,10 @@ static void test_loadlibraryshim(void) ...@@ -162,10 +163,10 @@ static void test_loadlibraryshim(void)
{ {
latest = v1_1; latest = v1_1;
GetModuleFileNameW(hdll, dllpath, MAX_PATH); GetModuleFileNameA(hdll, dllpath, MAX_PATH);
todo_wine ok(StrStrIW(dllpath, v1_1) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); todo_wine ok(StrStrIA(dllpath, "v1.1.4322") != 0, "incorrect fusion.dll path %s\n", dllpath);
ok(StrStrIW(dllpath, fusiondll) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); ok(StrStrIA(dllpath, "fusion.dll") != 0, "incorrect fusion.dll path %s\n", dllpath);
FreeLibrary(hdll); FreeLibrary(hdll);
} }
...@@ -176,10 +177,10 @@ static void test_loadlibraryshim(void) ...@@ -176,10 +177,10 @@ static void test_loadlibraryshim(void)
{ {
latest = v2_0; latest = v2_0;
GetModuleFileNameW(hdll, dllpath, MAX_PATH); GetModuleFileNameA(hdll, dllpath, MAX_PATH);
todo_wine ok(StrStrIW(dllpath, v2_0) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); todo_wine ok(StrStrIA(dllpath, "v2.0.50727") != 0, "incorrect fusion.dll path %s\n", dllpath);
ok(StrStrIW(dllpath, fusiondll) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); ok(StrStrIA(dllpath, "fusion.dll") != 0, "incorrect fusion.dll path %s\n", dllpath);
FreeLibrary(hdll); FreeLibrary(hdll);
} }
...@@ -192,10 +193,10 @@ static void test_loadlibraryshim(void) ...@@ -192,10 +193,10 @@ static void test_loadlibraryshim(void)
if (!latest) if (!latest)
latest = v4_0; latest = v4_0;
GetModuleFileNameW(hdll, dllpath, MAX_PATH); GetModuleFileNameA(hdll, dllpath, MAX_PATH);
todo_wine ok(StrStrIW(dllpath, v4_0) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); todo_wine ok(StrStrIA(dllpath, "v4.0.30319") != 0, "incorrect fusion.dll path %s\n", dllpath);
ok(StrStrIW(dllpath, fusiondll) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); ok(StrStrIA(dllpath, "fusion.dll") != 0, "incorrect fusion.dll path %s\n", dllpath);
FreeLibrary(hdll); FreeLibrary(hdll);
} }
...@@ -205,15 +206,17 @@ static void test_loadlibraryshim(void) ...@@ -205,15 +206,17 @@ static void test_loadlibraryshim(void)
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
FreeLibrary(hdll); FreeLibrary(hdll);
WideCharToMultiByte(CP_ACP, 0, latest, -1, latestA, MAX_PATH, NULL, NULL);
hr = pLoadLibraryShim(fusion, NULL, NULL, &hdll); hr = pLoadLibraryShim(fusion, NULL, NULL, &hdll);
ok(hr == S_OK, "LoadLibraryShim failed, hr=%x\n", hr); ok(hr == S_OK, "LoadLibraryShim failed, hr=%x\n", hr);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
GetModuleFileNameW(hdll, dllpath, MAX_PATH); GetModuleFileNameA(hdll, dllpath, MAX_PATH);
if (latest) if (latest)
todo_wine ok(StrStrIW(dllpath, latest) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); todo_wine ok(StrStrIA(dllpath, latestA) != 0, "incorrect fusion.dll path %s\n", dllpath);
ok(StrStrIW(dllpath, fusiondll) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); ok(StrStrIA(dllpath, "fusion.dll") != 0, "incorrect fusion.dll path %s\n", dllpath);
FreeLibrary(hdll); FreeLibrary(hdll);
} }
...@@ -222,11 +225,11 @@ static void test_loadlibraryshim(void) ...@@ -222,11 +225,11 @@ static void test_loadlibraryshim(void)
ok(hr == S_OK, "LoadLibraryShim failed, hr=%x\n", hr); ok(hr == S_OK, "LoadLibraryShim failed, hr=%x\n", hr);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
GetModuleFileNameW(hdll, dllpath, MAX_PATH); GetModuleFileNameA(hdll, dllpath, MAX_PATH);
if (latest) if (latest)
todo_wine ok(StrStrIW(dllpath, latest) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); todo_wine ok(StrStrIA(dllpath, latestA) != 0, "incorrect fusion.dll path %s\n", dllpath);
ok(StrStrIW(dllpath, fusiondll) != 0, "incorrect fusion.dll path %s\n", wine_dbgstr_w(dllpath)); ok(StrStrIA(dllpath, "fusion.dll") != 0, "incorrect fusion.dll path %s\n", dllpath);
FreeLibrary(hdll); FreeLibrary(hdll);
} }
......
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