]> granicus.if.org Git - apache/commitdiff
Success of 'SHGetMalloc()' should be tested with the SUCCEEDED macro.
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 24 May 2018 20:36:26 +0000 (20:36 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 24 May 2018 20:36:26 +0000 (20:36 +0000)
/!\   This commit is _NOT COMPILE TESTED_. (I don't have a windows build environment available)

See PR 60086.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1832198 13f79535-47bb-0310-9956-ffa450edef68

support/win32/ApacheMonitor.c

index 26b54a00dbedf57f8cdefa3c9140da6265fc0c14..841b4ab23614e516f0d703478e8d644e86cb78b7 100644 (file)
@@ -912,7 +912,7 @@ LRESULT CALLBACK ConnectDlgProc(HWND hDlg, UINT message,
                             WM_SETTEXT,
                             (WPARAM) NULL, (LPARAM) szCmp);
             }
-            if (SHGetMalloc(&pMalloc)) {
+            if (SUCCEEDED(SHGetMalloc(&pMalloc))) {
                 pMalloc->lpVtbl->Free(pMalloc, il);
                 pMalloc->lpVtbl->Release(pMalloc);
             }