Marcus Meissner : dbghelp: Check for NULL return from process_find_by_handle (Coverity).

Alexandre Julliard julliard at winehq.org
Tue Dec 15 09:40:18 CST 2009


Module: wine
Branch: master
Commit: 6feb525bc7742e0767d56a1026f08c9b1a787207
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6feb525bc7742e0767d56a1026f08c9b1a787207

Author: Marcus Meissner <meissner at suse.de>
Date:   Tue Dec 15 11:14:48 2009 +0100

dbghelp: Check for NULL return from process_find_by_handle (Coverity).

---

 dlls/dbghelp/dbghelp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/dbghelp/dbghelp.c b/dlls/dbghelp/dbghelp.c
index ae26518..1fe829a 100644
--- a/dlls/dbghelp/dbghelp.c
+++ b/dlls/dbghelp/dbghelp.c
@@ -466,6 +466,7 @@ static BOOL CALLBACK reg_cb64to32(HANDLE hProcess, ULONG action, ULONG64 data, U
     IMAGEHLP_DEFERRED_SYMBOL_LOAD64*    idsl64;
     IMAGEHLP_DEFERRED_SYMBOL_LOAD       idsl;
 
+    if (!pcs) return FALSE;
     switch (action)
     {
     case CBA_DEBUG_INFO:




More information about the wine-cvs mailing list