From 1b4a24126c57bd64d2ae147f0b4aba3563305717 Mon Sep 17 00:00:00 2001 From: Dylan Johnston Date: Fri, 29 Nov 2024 13:02:27 +1100 Subject: [PATCH] Fix incorrect assignment in win_file.c win_error should be compared to ERROR_INVALID_HANDLE but was instead being assigned the value. --- core/shared/platform/windows/win_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shared/platform/windows/win_file.c b/core/shared/platform/windows/win_file.c index 408d0d00c2..770c5c741b 100644 --- a/core/shared/platform/windows/win_file.c +++ b/core/shared/platform/windows/win_file.c @@ -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); }