Commit 602e6753 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

msvfw32: Avoid possible dereference of NULL pointer (Coverity).

parent cbb85daa
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment