mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[NtUser] - Remove unnecessary UINT size checks see CORE-7825. Patch by: Lee Schroeder.
svn path=/trunk/; revision=61889
This commit is contained in:
parent
05dbef656f
commit
b2107235fb
1 changed files with 1 additions and 6 deletions
|
@ -331,7 +331,7 @@ PackParam(LPARAM *lParamPacked, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL Non
|
|||
|
||||
MsgMemoryEntry = FindMsgMemory(Msg);
|
||||
|
||||
if ((!MsgMemoryEntry) || (MsgMemoryEntry->Size < 0))
|
||||
if (!MsgMemoryEntry)
|
||||
{
|
||||
/* Keep previous behavior */
|
||||
return STATUS_SUCCESS;
|
||||
|
@ -390,11 +390,6 @@ UnpackParam(LPARAM lParamPacked, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL No
|
|||
PMSGMEMORY MsgMemoryEntry;
|
||||
MsgMemoryEntry = FindMsgMemory(Msg);
|
||||
ASSERT(MsgMemoryEntry);
|
||||
if (MsgMemoryEntry->Size < 0)
|
||||
{
|
||||
/* Keep previous behavior */
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if (MsgMemoryEntry->Flags == MMS_FLAG_READWRITE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue