test: pass correct string type to GetModuleHandleW (#4820)
Introduced in commit 2545ffe74 from last month.
This commit is contained in:
parent
55f5fce1cc
commit
aad85404cc
@ -1701,7 +1701,7 @@ TEST_IMPL(spawn_fs_open) {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ASSERT_NE(0, DuplicateHandle(GetCurrentProcess(), fd, GetCurrentProcess(), &dup_fd,
|
ASSERT_NE(0, DuplicateHandle(GetCurrentProcess(), fd, GetCurrentProcess(), &dup_fd,
|
||||||
0, /* inherit */ TRUE, DUPLICATE_SAME_ACCESS));
|
0, /* inherit */ TRUE, DUPLICATE_SAME_ACCESS));
|
||||||
kernelbase_module = GetModuleHandleW("kernelbase.dll");
|
kernelbase_module = GetModuleHandleW(L"kernelbase.dll");
|
||||||
pCompareObjectHandles = (sCompareObjectHandles)
|
pCompareObjectHandles = (sCompareObjectHandles)
|
||||||
GetProcAddress(kernelbase_module, "CompareObjectHandles");
|
GetProcAddress(kernelbase_module, "CompareObjectHandles");
|
||||||
ASSERT_NE(pCompareObjectHandles == NULL ||
|
ASSERT_NE(pCompareObjectHandles == NULL ||
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user