mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[PSAPI_WINETEST]
sync psapi_winetest to wine 1.1.40 svn path=/trunk/; revision=45980
This commit is contained in:
parent
6534ce1c51
commit
ec5cdce304
1 changed files with 6 additions and 2 deletions
|
@ -157,8 +157,12 @@ static void test_GetMappedFileName(void)
|
||||||
|
|
||||||
w32_err(pGetMappedFileNameA(NULL, hMod, szMapPath, sizeof(szMapPath)), ERROR_INVALID_HANDLE);
|
w32_err(pGetMappedFileNameA(NULL, hMod, szMapPath, sizeof(szMapPath)), ERROR_INVALID_HANDLE);
|
||||||
w32_err(pGetMappedFileNameA(hpSR, hMod, szMapPath, sizeof(szMapPath)), ERROR_ACCESS_DENIED);
|
w32_err(pGetMappedFileNameA(hpSR, hMod, szMapPath, sizeof(szMapPath)), ERROR_ACCESS_DENIED);
|
||||||
if(!w32_suc(ret = pGetMappedFileNameA(hpQI, hMod, szMapPath, sizeof(szMapPath))))
|
|
||||||
return;
|
SetLastError( 0xdeadbeef );
|
||||||
|
ret = pGetMappedFileNameA(hpQI, hMod, szMapPath, sizeof(szMapPath));
|
||||||
|
ok( ret || broken(GetLastError() == ERROR_UNEXP_NET_ERR), /* win2k */
|
||||||
|
"GetMappedFileNameA failed with error %u\n", GetLastError() );
|
||||||
|
if (!ret) return;
|
||||||
ok(ret == strlen(szMapPath), "szMapPath=\"%s\" ret=%d\n", szMapPath, ret);
|
ok(ret == strlen(szMapPath), "szMapPath=\"%s\" ret=%d\n", szMapPath, ret);
|
||||||
ok(szMapPath[0] == '\\', "szMapPath=\"%s\"\n", szMapPath);
|
ok(szMapPath[0] == '\\', "szMapPath=\"%s\"\n", szMapPath);
|
||||||
szMapBaseName = strrchr(szMapPath, '\\'); /* That's close enough for us */
|
szMapBaseName = strrchr(szMapPath, '\\'); /* That's close enough for us */
|
||||||
|
|
Loading…
Reference in a new issue