mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 14:16:30 +00:00
Don't free the memory for LParam in NtUserPeekMessage if called with PM_NOREMOVE flag.
svn path=/trunk/; revision=12800
This commit is contained in:
parent
c0f005d179
commit
fca5c9e765
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: message.c,v 1.79 2004/12/29 19:55:01 gvg Exp $
|
/* $Id$
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -835,7 +835,7 @@ NtUserPeekMessage(PNTUSERGETMESSAGEINFO UnsafeInfo,
|
||||||
}
|
}
|
||||||
Info.Msg.lParam = (LPARAM) UserMem;
|
Info.Msg.lParam = (LPARAM) UserMem;
|
||||||
}
|
}
|
||||||
if (Msg.FreeLParam && 0 != Msg.Msg.lParam)
|
if (RemoveMsg && Msg.FreeLParam && 0 != Msg.Msg.lParam)
|
||||||
{
|
{
|
||||||
ExFreePool((void *) Msg.Msg.lParam);
|
ExFreePool((void *) Msg.Msg.lParam);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue