mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fix return value of WIN_GetMonitorPathInfo
This commit is contained in:
parent
8201b6dc4d
commit
36dec0bf4e
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue