Nikolay Sivov : comctl32/pager: Use the global HeapAlloc() helpers.
Alexandre Julliard
julliard at winehq.org
Fri Feb 9 14:51:44 CST 2018
Module: wine
Branch: master
Commit: 0e403837ff8f980196936749f3456fad85957c18
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0e403837ff8f980196936749f3456fad85957c18
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Feb 9 09:41:23 2018 +0300
comctl32/pager: 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/pager.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/pager.c b/dlls/comctl32/pager.c
index e9bcbe8..fe68515 100644
--- a/dlls/comctl32/pager.c
+++ b/dlls/comctl32/pager.c
@@ -62,6 +62,7 @@
#include "commctrl.h"
#include "comctl32.h"
#include "wine/debug.h"
+#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(pager);
@@ -556,7 +557,7 @@ PAGER_Create (HWND hwnd, const CREATESTRUCTW *lpcs)
PAGER_INFO *infoPtr;
/* allocate memory for info structure */
- infoPtr = Alloc (sizeof(PAGER_INFO));
+ infoPtr = heap_alloc_zero (sizeof(*infoPtr));
if (!infoPtr) return -1;
SetWindowLongPtrW (hwnd, 0, (DWORD_PTR)infoPtr);
@@ -588,7 +589,7 @@ static LRESULT
PAGER_Destroy (PAGER_INFO *infoPtr)
{
SetWindowLongPtrW (infoPtr->hwndSelf, 0, 0);
- Free (infoPtr); /* free pager info data */
+ heap_free (infoPtr);
return 0;
}
More information about the wine-cvs
mailing list