https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7b2bb85ceb4a84d7c1901…
commit 7b2bb85ceb4a84d7c1901068b19a26026af98f4a
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Aug 12 15:47:12 2018 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Thu Aug 16 14:13:47 2018 +0200
[WIN32K:NTUSER] Fix type confusion in MsgMemorySize.
---
win32ss/user/ntuser/message.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/win32ss/user/ntuser/message.c b/win32ss/user/ntuser/message.c
index c8cfededfb..3f7bcfb03b 100644
--- a/win32ss/user/ntuser/message.c
+++ b/win32ss/user/ntuser/message.c
@@ -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))