Commit 773c46b9 authored by Alexandre Julliard's avatar Alexandre Julliard

psapi/tests: Don't check data returned from a failing call.

parent bdf75783
...@@ -203,17 +203,20 @@ todo_wine ...@@ -203,17 +203,20 @@ todo_wine
todo_wine todo_wine
ok( ret || broken(GetLastError() == ERROR_UNEXP_NET_ERR), /* win2k */ ok( ret || broken(GetLastError() == ERROR_UNEXP_NET_ERR), /* win2k */
"GetMappedFileNameA failed with error %u\n", GetLastError() ); "GetMappedFileNameA failed with error %u\n", GetLastError() );
ok(ret == strlen(szMapPath), "szMapPath=\"%s\" ret=%d\n", szMapPath, ret); if (ret)
todo_wine
ok(szMapPath[0] == '\\', "szMapPath=\"%s\"\n", szMapPath);
szMapBaseName = strrchr(szMapPath, '\\'); /* That's close enough for us */
todo_wine
ok(szMapBaseName && *szMapBaseName, "szMapPath=\"%s\"\n", szMapPath);
if (szMapBaseName)
{ {
GetModuleFileNameA(NULL, szModPath, sizeof(szModPath)); ok(ret == strlen(szMapPath), "szMapPath=\"%s\" ret=%d\n", szMapPath, ret);
ok(!strcmp(strrchr(szModPath, '\\'), szMapBaseName), todo_wine
"szModPath=\"%s\" szMapBaseName=\"%s\"\n", szModPath, szMapBaseName); ok(szMapPath[0] == '\\', "szMapPath=\"%s\"\n", szMapPath);
szMapBaseName = strrchr(szMapPath, '\\'); /* That's close enough for us */
todo_wine
ok(szMapBaseName && *szMapBaseName, "szMapPath=\"%s\"\n", szMapPath);
if (szMapBaseName)
{
GetModuleFileNameA(NULL, szModPath, sizeof(szModPath));
ok(!strcmp(strrchr(szModPath, '\\'), szMapBaseName),
"szModPath=\"%s\" szMapBaseName=\"%s\"\n", szModPath, szMapBaseName);
}
} }
GetTempPath(MAX_PATH, temp_path); GetTempPath(MAX_PATH, temp_path);
......
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