Andrew Talbot : msvfw32: Avoid possible dereference of NULL pointer ( Coverity).
Alexandre Julliard
julliard at winehq.org
Thu Feb 7 07:59:30 CST 2008
Module: wine
Branch: master
Commit: 602e6753753ef0e897a9fd7ce46956baca1de510
URL: http://source.winehq.org/git/wine.git/?a=commit;h=602e6753753ef0e897a9fd7ce46956baca1de510
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Sat Feb 2 13:36:18 2008 +0000
msvfw32: Avoid possible dereference of NULL pointer (Coverity).
---
dlls/msvfw32/drawdib.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/msvfw32/drawdib.c b/dlls/msvfw32/drawdib.c
index 3b30823..137716d 100644
--- a/dlls/msvfw32/drawdib.c
+++ b/dlls/msvfw32/drawdib.c
@@ -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);
More information about the wine-cvs
mailing list