From 65e3735320495663f022b03bffbdb2776fceb342 Mon Sep 17 00:00:00 2001 From: Rialbat Date: Wed, 2 Oct 2024 11:12:11 +0300 Subject: [PATCH] win: fix pNtQueryDirectoryFile check Fixed incorrect verification of the pNtQueryDirectoryFile pointer. --- src/win/winapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/winapi.c b/src/win/winapi.c index 4add0e27372..a74108db03e 100644 --- a/src/win/winapi.c +++ b/src/win/winapi.c @@ -103,7 +103,7 @@ void uv__winapi_init(void) { pNtQueryDirectoryFile = (sNtQueryDirectoryFile) GetProcAddress(ntdll_module, "NtQueryDirectoryFile"); - if (pNtQueryVolumeInformationFile == NULL) { + if (pNtQueryDirectoryFile == NULL) { uv_fatal_error(GetLastError(), "GetProcAddress"); }