Skip to content

Commit

Permalink
Fix incorrect assignment in win_file.c (#3939)
Browse files Browse the repository at this point in the history
win_error should be compared to ERROR_INVALID_HANDLE but was instead
being assigned the value.
  • Loading branch information
dpjohnst authored Dec 1, 2024
1 parent 838dd81 commit 739efd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shared/platform/windows/win_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ os_closedir(os_dir_stream dir_stream)
if (!success) {
DWORD win_error = GetLastError();

if (win_error = ERROR_INVALID_HANDLE)
if (win_error == ERROR_INVALID_HANDLE)
BH_FREE(dir_stream);
return convert_windows_error_code(win_error);
}
Expand Down

0 comments on commit 739efd7

Please sign in to comment.