aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2025-07-06 15:39:37 +0200
committerGitHub <noreply@github.com>2025-07-06 15:39:37 +0200
commitaad85404ccfcfea8bb9ca2f18df7d6177984a5ee (patch)
treee3b0627c78d47ea8a29b8450cd8bebe70fecfb10
parent55f5fce1cc888cd8ea7139882b76137176145853 (diff)
downloadlibuv-aad85404ccfcfea8bb9ca2f18df7d6177984a5ee.tar.gz
libuv-aad85404ccfcfea8bb9ca2f18df7d6177984a5ee.zip
test: pass correct string type to GetModuleHandleW (#4820)
Introduced in commit 2545ffe74 from last month.
-rw-r--r--test/test-spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-spawn.c b/test/test-spawn.c
index 1c470a09..0dad9bcd 100644
--- a/test/test-spawn.c
+++ b/test/test-spawn.c
@@ -1701,7 +1701,7 @@ TEST_IMPL(spawn_fs_open) {
#ifdef _WIN32
ASSERT_NE(0, DuplicateHandle(GetCurrentProcess(), fd, GetCurrentProcess(), &dup_fd,
0, /* inherit */ TRUE, DUPLICATE_SAME_ACCESS));
- kernelbase_module = GetModuleHandleW("kernelbase.dll");
+ kernelbase_module = GetModuleHandleW(L"kernelbase.dll");
pCompareObjectHandles = (sCompareObjectHandles)
GetProcAddress(kernelbase_module, "CompareObjectHandles");
ASSERT_NE(pCompareObjectHandles == NULL ||