Преглед на файлове

Fix return value of WIN_GetMonitorPathInfo

Mathieu Eyraud преди 2 години
родител
ревизия
36dec0bf4e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/video/windows/SDL_windowsmodes.c

+ 1 - 1
src/video/windows/SDL_windowsmodes.c

@@ -407,7 +407,7 @@ static SDL_bool WIN_GetMonitorPathInfo(HMONITOR hMonitor, DISPLAYCONFIG_PATH_INF
 
     do {
         if (GetDisplayConfigBufferSizes(QDC_ONLY_ACTIVE_PATHS, &num_path_array_elements, &num_mode_info_array_elements) != ERROR_SUCCESS) {
-            return -1;
+            return SDL_FALSE;
         }
 
         new_path_infos = (DISPLAYCONFIG_PATH_INFO *)SDL_realloc(path_infos, num_path_array_elements * sizeof(*path_infos));