diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2018-05-24 22:36:26 +0200 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2018-05-24 22:36:26 +0200 |
commit | cda22a05144b23fe37347e1cd540cba944f8b303 (patch) | |
tree | 35e0f16ce7c7434b54cf1530bb565efd0a5c29de /support | |
parent | http_protocol.c: avoid duplicate headers when using (diff) | |
download | apache2-cda22a05144b23fe37347e1cd540cba944f8b303.tar.xz apache2-cda22a05144b23fe37347e1cd540cba944f8b303.zip |
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.c | 2 |
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); } |