diff --git a/dlls/x11drv/settings.c b/dlls/x11drv/settings.c index 3f0996ca11c..5e3665f08d4 100644 --- a/dlls/x11drv/settings.c +++ b/dlls/x11drv/settings.c @@ -277,7 +277,7 @@ LONG X11DRV_ChangeDisplaySettingsEx( LPCWSTR devname, LPDEVMODEW devmode, if (devmode->dmPelsHeight != dd_modes[i].dwHeight) continue; } - if (devmode->dmFields & DM_DISPLAYFREQUENCY) + if ((devmode->dmFields & DM_DISPLAYFREQUENCY) && (dd_modes[i].wRefreshRate != 0)) { if (devmode->dmDisplayFrequency != dd_modes[i].wRefreshRate) continue;