Skip to content

Commit

Permalink
win: fix pNtQueryDirectoryFile check
Browse files Browse the repository at this point in the history
Fixed incorrect verification of the pNtQueryDirectoryFile pointer.
  • Loading branch information
rialbat authored and saghul committed Oct 3, 2024
1 parent f806be8 commit 65e3735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win/winapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 65e3735

Please sign in to comment.