[WIN32K:NTUSER] Fix type confusion in MsgMemorySize.

This commit is contained in:
Thomas Faber 2018-08-12 15:47:12 +02:00
parent 19318dcc1d
commit 7b2bb85ceb
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -164,7 +164,7 @@ static UINT FASTCALL
MsgMemorySize(PMSGMEMORY MsgMemoryEntry, WPARAM wParam, LPARAM lParam)
{
CREATESTRUCTW *Cs;
PUNICODE_STRING WindowName;
PLARGE_STRING WindowName;
PUNICODE_STRING ClassName;
UINT Size = 0;
@ -196,7 +196,7 @@ MsgMemorySize(PMSGMEMORY MsgMemoryEntry, WPARAM wParam, LPARAM lParam)
case WM_CREATE:
case WM_NCCREATE:
Cs = (CREATESTRUCTW *) lParam;
WindowName = (PUNICODE_STRING) Cs->lpszName;
WindowName = (PLARGE_STRING) Cs->lpszName;
ClassName = (PUNICODE_STRING) Cs->lpszClass;
Size = sizeof(CREATESTRUCTW) + WindowName->Length + sizeof(WCHAR);
if (IS_ATOM(ClassName->Buffer))