Skip to content

Commit 739efd7

Browse files
authored
Fix incorrect assignment in win_file.c (#3939)
win_error should be compared to ERROR_INVALID_HANDLE but was instead being assigned the value.
1 parent 838dd81 commit 739efd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/shared/platform/windows/win_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ os_closedir(os_dir_stream dir_stream)
17581758
if (!success) {
17591759
DWORD win_error = GetLastError();
17601760

1761-
if (win_error = ERROR_INVALID_HANDLE)
1761+
if (win_error == ERROR_INVALID_HANDLE)
17621762
BH_FREE(dir_stream);
17631763
return convert_windows_error_code(win_error);
17641764
}

0 commit comments

Comments
 (0)