[0.4.13][WIN32SS] Fix regression CORE-16393

Symptom "cmd did not hide the taskbar anymore when switching to fullscreen"

It regressed by SVN r75407 == git
09ab5ea7ed

VBox LGTM https://reactos.org/testman/compare.php?ids=69295,69297
 KVM LGTM https://reactos.org/testman/compare.php?ids=69296,69298

Many thanks to the patches author James Tabor.

cherry picked from commit 0.4.14-dev-38-g
96ef605f4b
This commit is contained in:
Joachim Henze 2019-10-11 23:21:39 +02:00
parent 1e50a4e7d3
commit 0a03b36aee

View file

@ -783,6 +783,13 @@ UserChangeDisplaySettings(
}
}
/* Check if DEVMODE matches the current mode */
if (pdm == ppdev->pdmwDev && !(flags & CDS_RESET))
{
ERR("DEVMODE matches, nothing to do\n");
goto leave;
}
/* Shall we apply the settings? */
if (!(flags & CDS_NORESET))
{
@ -926,6 +933,11 @@ NtUserChangeDisplaySettings(
return DISP_CHANGE_BADFLAGS;
}
if ((dwflags & CDS_RESET) && (dwflags & CDS_NORESET))
{
return DISP_CHANGE_BADFLAGS;
}
/* Copy the device name */
if (pustrDevice)
{