mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:05:42 +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);
|
MsgMemoryEntry = FindMsgMemory(Msg);
|
||||||
|
|
||||||
if ((!MsgMemoryEntry) || (MsgMemoryEntry->Size < 0))
|
if (!MsgMemoryEntry)
|
||||||
{
|
{
|
||||||
/* Keep previous behavior */
|
/* Keep previous behavior */
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
@ -390,11 +390,6 @@ UnpackParam(LPARAM lParamPacked, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL No
|
||||||
PMSGMEMORY MsgMemoryEntry;
|
PMSGMEMORY MsgMemoryEntry;
|
||||||
MsgMemoryEntry = FindMsgMemory(Msg);
|
MsgMemoryEntry = FindMsgMemory(Msg);
|
||||||
ASSERT(MsgMemoryEntry);
|
ASSERT(MsgMemoryEntry);
|
||||||
if (MsgMemoryEntry->Size < 0)
|
|
||||||
{
|
|
||||||
/* Keep previous behavior */
|
|
||||||
return STATUS_INVALID_PARAMETER;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (MsgMemoryEntry->Flags == MMS_FLAG_READWRITE)
|
if (MsgMemoryEntry->Flags == MMS_FLAG_READWRITE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue