subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1755983 - /subversion/trunk/subversion/libsvn_subr/win32_crashrpt.c
Date Thu, 11 Aug 2016 13:43:33 GMT
Author: ivan
Date: Thu Aug 11 13:43:32 2016
New Revision: 1755983

URL: http://svn.apache.org/viewvc?rev=1755983&view=rev
Log:
Correctly check result from LoadLibrary() call: LoadLibrary() returns NULL
if it cannot load specified module.

* subversion/libsvn_subr/win32_crashrpt.c
  (load_dbghelp_dll): Check for NULL, not for INVALID_HANDLE_VALUE.

Modified:
    subversion/trunk/subversion/libsvn_subr/win32_crashrpt.c

Modified: subversion/trunk/subversion/libsvn_subr/win32_crashrpt.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/win32_crashrpt.c?rev=1755983&r1=1755982&r2=1755983&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/win32_crashrpt.c (original)
+++ subversion/trunk/subversion/libsvn_subr/win32_crashrpt.c Thu Aug 11 13:43:32 2016
@@ -608,7 +608,7 @@ static BOOL
 load_dbghelp_dll()
 {
   dbghelp_dll = LoadLibrary(DBGHELP_DLL);
-  if (dbghelp_dll != INVALID_HANDLE_VALUE)
+  if (dbghelp_dll != NULL)
     {
       DWORD opts;
 



Mime
View raw message