- IntEmptyClipboardData: Check before freeing a potential null pointer

svn path=/trunk/; revision=41143
This commit is contained in:
Stefan Ginsberg 2009-05-27 16:39:24 +00:00
parent acf1233799
commit e6b91f9ede

View file

@ -229,7 +229,10 @@ IntEmptyClipboardData()
while(ce) while(ce)
{ {
tmp = ce->next; tmp = ce->next;
ExFreePool(ce->hData); if (ce->hData)
{
ExFreePool(ce->hData);
}
ExFreePool(ce); ExFreePool(ce);
ce = tmp; ce = tmp;
} }