mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:46:05 +00:00
[win32k]
- Only call ExFreePool.. if Buffer is not NULL, which can occur if the Unicode String MessageNameUnsafe coming from user mode is incorrect. Fixes a bugcheck when using OllyDbg V2.0. svn path=/trunk/; revision=47075
This commit is contained in:
parent
f4fd1abac0
commit
35ff67b13e
1 changed files with 2 additions and 2 deletions
|
@ -4268,8 +4268,8 @@ NtUserRegisterWindowMessage(PUNICODE_STRING MessageNameUnsafe)
|
||||||
}
|
}
|
||||||
|
|
||||||
Ret = (UINT)IntAddAtom(SafeMessageName.Buffer);
|
Ret = (UINT)IntAddAtom(SafeMessageName.Buffer);
|
||||||
|
if (SafeMessageName.Buffer)
|
||||||
ExFreePoolWithTag(SafeMessageName.Buffer, TAG_STRING);
|
ExFreePoolWithTag(SafeMessageName.Buffer, TAG_STRING);
|
||||||
RETURN( Ret);
|
RETURN( Ret);
|
||||||
|
|
||||||
CLEANUP:
|
CLEANUP:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue