From 975e117780077f8e773d3ae976bfb37292e3718d Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 29 Dec 2019 15:02:11 +0100 Subject: [PATCH] [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) {