test: pass correct string type to GetModuleHandleW (#4820)

Introduced in commit 2545ffe74 from last month.
This commit is contained in:
Ben Noordhuis 2025-07-06 15:39:37 +02:00 committed by GitHub
parent 55f5fce1cc
commit aad85404cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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