[ros-diffs] [navaraf] 12800: Don't free the memory for LParam in NtUserPeekMessage if called with PM_NOREMOVE flag.

navaraf at svn.reactos.com navaraf at svn.reactos.com
Tue Jan 4 22:25:22 CET 2005


Don't free the memory for LParam in NtUserPeekMessage if called with
PM_NOREMOVE flag.
Modified: trunk/reactos/subsys/win32k/ntuser/message.c
  _____  

Modified: trunk/reactos/subsys/win32k/ntuser/message.c
--- trunk/reactos/subsys/win32k/ntuser/message.c	2005-01-04
21:19:51 UTC (rev 12799)
+++ trunk/reactos/subsys/win32k/ntuser/message.c	2005-01-04
21:25:20 UTC (rev 12800)
@@ -16,7 +16,7 @@

  *  along with this program; if not, write to the Free Software
  *  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
  * PROJECT:          ReactOS kernel
@@ -835,7 +835,7 @@
             }
           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);
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050104/e553bea1/attachment.html


More information about the Ros-diffs mailing list