Nikolay Sivov : comctl32/progress: Use the global HeapAlloc() helpers.
Alexandre Julliard
julliard at winehq.org
Fri Feb 9 14:51:44 CST 2018
Module: wine
Branch: master
Commit: cfac6021e9b8ae9c9a061894ee2c657c23b80843
URL: https://source.winehq.org/git/wine.git/?a=commit;h=cfac6021e9b8ae9c9a061894ee2c657c23b80843
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Feb 9 09:41:24 2018 +0300
comctl32/progress: Use the global HeapAlloc() helpers.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/progress.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/progress.c b/dlls/comctl32/progress.c
index 4638ffc..62234b9 100644
--- a/dlls/comctl32/progress.c
+++ b/dlls/comctl32/progress.c
@@ -46,6 +46,7 @@
#include "uxtheme.h"
#include "vssym32.h"
#include "wine/debug.h"
+#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(progress);
@@ -562,7 +563,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
/* allocate memory for info struct */
- infoPtr = Alloc (sizeof(PROGRESS_INFO));
+ infoPtr = heap_alloc_zero (sizeof(*infoPtr));
if (!infoPtr) return -1;
SetWindowLongPtrW (hwnd, 0, (DWORD_PTR)infoPtr);
@@ -584,7 +585,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
case WM_DESTROY:
TRACE("Progress Ctrl destruction, hwnd=%p\n", hwnd);
- Free (infoPtr);
+ heap_free (infoPtr);
SetWindowLongPtrW(hwnd, 0, 0);
theme = GetWindowTheme (hwnd);
CloseThemeData (theme);
More information about the wine-cvs
mailing list