https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ef103d7d69f918f699a81…
commit ef103d7d69f918f699a81756bcae7d8f40ed93e9
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Dec 29 18:51:05 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Dec 29 20:08:51 2019 +0100
[WIN32K:NTUSER] Avoid user memory access outside of SEH in NtUserEnumDisplaySettings.
---
win32ss/user/ntuser/display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/user/ntuser/display.c b/win32ss/user/ntuser/display.c
index 5295573437e..3c39c05ec35 100644
--- a/win32ss/user/ntuser/display.c
+++ b/win32ss/user/ntuser/display.c
@@ -621,7 +621,7 @@ NtUserEnumDisplaySettings(
}
_SEH2_END;
- if (lpDevMode->dmSize != sizeof(DEVMODEW))
+ if (cbSize != sizeof(DEVMODEW))
{
return STATUS_BUFFER_TOO_SMALL;
}