1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

shlwapi/tests: Test NULL handle duplication in SHMapHandle().

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bruno Jesus 2017-01-30 21:42:28 -02:00 committed by Alexandre Julliard
parent b46e15568c
commit 57b83e1459

View File

@ -568,6 +568,12 @@ static void test_alloc_shared_remote(DWORD procid, HANDLE hmem)
ok(ret, "SHUnlockShared failed: %u\n", GetLastError());
/* test SHMapHandle */
SetLastError(0xdeadbeef);
hmem2 = pSHMapHandle(NULL, procid, GetCurrentProcessId(), 0, 0);
ok(hmem2 == NULL, "expected NULL, got new handle\n");
todo_wine
ok(GetLastError() == 0xdeadbeef, "last error should not have changed, got %u\n", GetLastError());
hmem2 = pSHMapHandle(hmem, procid, GetCurrentProcessId(), 0, 0);
/* It seems like Windows Vista/2008 uses a different internal implementation