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:
Olivier F. R. Dierick 2015-12-02 00:44:20 +01:00 committed by Alexandre Julliard
parent de0d8719d2
commit 71bbd8da87
1 changed files with 5 additions and 0 deletions

View File

@ -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)