summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2018-05-24 20:36:26 +0000
committerChristophe Jaillet <jailletc36@apache.org>2018-05-24 20:36:26 +0000
commitcda22a05144b23fe37347e1cd540cba944f8b303 (patch)
tree35e0f16ce7c7434b54cf1530bb565efd0a5c29de /support
parent99f34e5f15705a1f8def8e789671b391c0d31271 (diff)
downloadhttpd-cda22a05144b23fe37347e1cd540cba944f8b303.tar.gz
Success of 'SHGetMalloc()' should be tested with the SUCCEEDED macro.
/!\ 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
Diffstat (limited to 'support')
-rw-r--r--support/win32/ApacheMonitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c
index 26b54a00db..841b4ab236 100644
--- a/support/win32/ApacheMonitor.c
+++ b/support/win32/ApacheMonitor.c
@@ -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);
}