summaryrefslogtreecommitdiff
path: root/alf/alflabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alflabel.cpp')
-rw-r--r--alf/alflabel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp
index eb27fb1..0a18a54 100644
--- a/alf/alflabel.cpp
+++ b/alf/alflabel.cpp
@@ -39,12 +39,12 @@ ALF__LabelSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_
RECT r = { 0, 0, 100, 100 };
int textlen = GetWindowTextLength(hwnd);
- TCHAR *textbuf = (TCHAR*)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY|HEAP_GENERATE_EXCEPTIONS, (textlen + 1)*sizeof(TCHAR));
+ TCHAR *textbuf = ALF_New(TCHAR, textlen + 1);
GetWindowText(hwnd, textbuf, textlen+1);
DrawText(hdcLabel, textbuf, -1, &r, format);
- HeapFree(GetProcessHeap(), 0, textbuf);
+ ALF_Free(textbuf);
SIZE *pSize = (SIZE*)(void*)lParam;
if (pSize->cx == 0)