shlwapi/tests: Test SHFreeShared with NULL handle.
Signed-off-by: Olivier F. R. Dierick <o.dierick@piezo-forte.be> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
de0d8719d2
commit
71bbd8da87
|
@ -516,6 +516,11 @@ static void test_alloc_shared(int argc, char **argv)
|
|||
ret = pSHFreeShared(hmem2, procid);
|
||||
ok(ret, "SHFreeShared failed: %u\n", GetLastError());
|
||||
}
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = pSHFreeShared(NULL, procid);
|
||||
ok(ret, "SHFreeShared failed: %u\n", GetLastError());
|
||||
ok(GetLastError() == 0xdeadbeef, "last error should not have changed, got %u\n", GetLastError());
|
||||
}
|
||||
|
||||
static void test_alloc_shared_remote(DWORD procid, HANDLE hmem)
|
||||
|
|
Loading…
Reference in New Issue