[WIN32K:NTUSER] Add missing probe in NtUserGetClassName.

This commit is contained in:
Thomas Faber 2019-12-29 16:14:17 +01:00
parent 771b87dc8f
commit be92be2e37
No known key found for this signature in database
GPG Key ID: 076E7C3D44720826

View File

@ -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,