Kaynağa Gözat

Fix incorrect assignment in win_file.c (#3939)

win_error should be compared to ERROR_INVALID_HANDLE but was instead
being assigned the value.
Dylan Johnston 1 yıl önce
ebeveyn
işleme
739efd78e9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      core/shared/platform/windows/win_file.c

+ 1 - 1
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);
     }