Commit 57b83e14 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

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

parent b46e1556
......@@ -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
......
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