diff --git a/reactos/dll/win32/user32/misc/display.c b/reactos/dll/win32/user32/misc/display.c index 22d070d5527..9090454c14b 100644 --- a/reactos/dll/win32/user32/misc/display.c +++ b/reactos/dll/win32/user32/misc/display.c @@ -478,7 +478,7 @@ ChangeDisplaySettingsExA( rc = NtUserChangeDisplaySettings ( pDeviceName, pDevModeW, hwnd, dwflags, lParam ); if (pDevModeW != NULL) - RtlFreeHeap(GetProcessHeap(), pDevModeW); + RtlFreeHeap(GetProcessHeap(), 0, pDevModeW); if (lpszDeviceName != NULL) RtlFreeUnicodeString ( &DeviceName );