https://git.reactos.org/?p=reactos.git;a=commitdiff;h=975e117780077f8e773d3…
commit 975e117780077f8e773d3ae976bfb37292e3718d
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Dec 29 15:02:11 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Dec 29 15:22:03 2019 +0100
[WIN32K:NTUSER] Add missing parameter probe in NtUserGetClassInfo.
---
win32ss/user/ntuser/class.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/win32ss/user/ntuser/class.c b/win32ss/user/ntuser/class.c
index 2bda75012d6..83fe9009b34 100644
--- a/win32ss/user/ntuser/class.c
+++ b/win32ss/user/ntuser/class.c
@@ -2706,6 +2706,10 @@ NtUserGetClassInfo(
{
ProbeForWrite( lpWndClassEx, sizeof(WNDCLASSEXW), sizeof(ULONG));
RtlCopyMemory( &Safewcexw, lpWndClassEx, sizeof(WNDCLASSEXW));
+ if (ppszMenuName)
+ {
+ ProbeForWrite(ppszMenuName, sizeof(*ppszMenuName), sizeof(PVOID));
+ }
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{