mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- IntEmptyClipboardData: Check before freeing a potential null pointer
svn path=/trunk/; revision=41143
This commit is contained in:
@@ -229,7 +229,10 @@ IntEmptyClipboardData()
|
||||
while(ce)
|
||||
{
|
||||
tmp = ce->next;
|
||||
ExFreePool(ce->hData);
|
||||
if (ce->hData)
|
||||
{
|
||||
ExFreePool(ce->hData);
|
||||
}
|
||||
ExFreePool(ce);
|
||||
ce = tmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user