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

This commit is contained in:
Andrew Talbot 2008-02-02 13:36:18 +00:00 committed by Alexandre Julliard
parent cbb85daa8f
commit 602e675375
1 changed files with 2 additions and 0 deletions

View File

@ -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);