mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[WIN32K:NTUSER] Avoid user memory access outside of SEH in NtUserEnumDisplaySettings.
This commit is contained in:
@@ -621,7 +621,7 @@ NtUserEnumDisplaySettings(
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
if (lpDevMode->dmSize != sizeof(DEVMODEW))
|
||||
if (cbSize != sizeof(DEVMODEW))
|
||||
{
|
||||
return STATUS_BUFFER_TOO_SMALL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user