[Git][wine/wine][master] win32u: Fix incorrect comparison in add_virtual_modes.
Alexandre Julliard pushed to branch master at wine / wine Commits: 6d0f2f67 by Fan WenJie at 2024-07-23T21:29:16+02:00 win32u: Fix incorrect comparison in add_virtual_modes. Fixes: 60eb5cb5d252e400abe91a8fc8f53ea4841d50f9 - - - - - 1 changed file: - dlls/win32u/sysparams.c Changes: ===================================== dlls/win32u/sysparams.c ===================================== @@ -1914,8 +1914,8 @@ static void add_virtual_modes( struct device_manager_ctx *ctx, const DEVMODEW *c mode.dmPelsWidth = screen_sizes[j].width; mode.dmPelsHeight = screen_sizes[j].height; - if (mode.dmPelsWidth > maximum->dmPelsWidth || mode.dmPelsHeight > maximum->dmPelsWidth) continue; - if (mode.dmPelsWidth == maximum->dmPelsWidth && mode.dmPelsHeight == maximum->dmPelsWidth) continue; + if (mode.dmPelsWidth > maximum->dmPelsWidth || mode.dmPelsHeight > maximum->dmPelsHeight) continue; + if (mode.dmPelsWidth == maximum->dmPelsWidth && mode.dmPelsHeight == maximum->dmPelsHeight) continue; if (mode.dmPelsWidth == initial->dmPelsWidth && mode.dmPelsHeight == initial->dmPelsHeight) continue; modes[modes_count++] = mode; } View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/6d0f2f67a5d7c57d1d32262c66f97bd... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/6d0f2f67a5d7c57d1d32262c66f97bd... You're receiving this email because of your account on gitlab.winehq.org.
participants (1)
-
Alexandre Julliard (@julliard)