msvfw32: Avoid possible dereference of NULL pointer (Coverity).
This commit is contained in:
parent
cbb85daa8f
commit
602e675375
|
@ -133,6 +133,8 @@ BOOL VFWAPI DrawDibEnd(HDRAWDIB hdd)
|
|||
|
||||
TRACE("(%p)\n", hdd);
|
||||
|
||||
if (!whdd) return FALSE;
|
||||
|
||||
whdd->hpal = 0; /* Do not free this */
|
||||
whdd->hdc = 0;
|
||||
HeapFree(GetProcessHeap(), 0, whdd->lpbi);
|
||||
|
|
Loading…
Reference in New Issue