https://git.reactos.org/?p=reactos.git;a=commitdiff;h=be92be2e37dba65306077…
commit be92be2e37dba65306077bee26fa7ef92edaa6b6
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Dec 29 16:14:17 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Dec 29 20:08:30 2019 +0100
[WIN32K:NTUSER] Add missing probe in NtUserGetClassName.
---
win32ss/user/ntuser/class.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/win32ss/user/ntuser/class.c b/win32ss/user/ntuser/class.c
index 83fe9009b34..d669340baf7 100644
--- a/win32ss/user/ntuser/class.c
+++ b/win32ss/user/ntuser/class.c
@@ -2815,6 +2815,12 @@ NtUserGetClassName (IN HWND hWnd,
{
ProbeForWriteUnicodeString(ClassName);
CapturedClassName = *ClassName;
+ if (CapturedClassName.Length != 0)
+ {
+ ProbeForRead(CapturedClassName.Buffer,
+ CapturedClassName.Length,
+ sizeof(WCHAR));
+ }
/* Get the class name */
Ret = UserGetClassName(Window->pcls,