mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:39:34 +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:
parent
b46e15568c
commit
57b83e1459
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue