Author: sginsberg
Date: Wed May 27 20:39:24 2009
New Revision: 41143
URL:
http://svn.reactos.org/svn/reactos?rev=41143&view=rev
Log:
- IntEmptyClipboardData: Check before freeing a potential null pointer
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] Wed May 27
20:39:24 2009
@@ -229,7 +229,10 @@
while(ce)
{
tmp = ce->next;
- ExFreePool(ce->hData);
+ if (ce->hData)
+ {
+ ExFreePool(ce->hData);
+ }
ExFreePool(ce);
ce = tmp;
}