Re: wine/dlls/comctl32 comctl32undoc.c comctl32.sp ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 22 Sep 2003, Alexandre Julliard wrote:

> Sure, we should do that, I just didn't want to do too many changes at
> the same time. Feel free to submit patches.

Here it is:

ChangeLog
    Dimitrie O. Paun <dpaun@rogers.com>
    Rename COMCTL32_{Alloc,ReAlloc,Free} to {Alloc,ReAlloc,Free}.


Index: dlls/comctl32/animate.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/animate.c,v
retrieving revision 1.50
diff -u -r1.50 animate.c
--- dlls/comctl32/animate.c	17 Sep 2003 20:15:22 -0000	1.50
+++ dlls/comctl32/animate.c	22 Sep 2003 19:37:22 -0000
@@ -781,7 +781,7 @@
     }
 
     /* allocate memory for info structure */
-    infoPtr = (ANIMATE_INFO *)COMCTL32_Alloc(sizeof(ANIMATE_INFO));
+    infoPtr = (ANIMATE_INFO *)Alloc(sizeof(ANIMATE_INFO));
     if (!infoPtr) {
 	ERR("could not allocate info memory!\n");
 	return 0;
@@ -810,7 +810,7 @@
     ANIMATE_Free(infoPtr);
 
     /* free animate info data */
-    COMCTL32_Free(infoPtr);
+    Free(infoPtr);
     SetWindowLongA(hWnd, 0, 0);
 
     return 0;
Index: dlls/comctl32/comboex.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/comboex.c,v
retrieving revision 1.66
diff -u -r1.66 comboex.c
--- dlls/comctl32/comboex.c	17 Sep 2003 20:15:22 -0000	1.66
+++ dlls/comctl32/comboex.c	22 Sep 2003 19:37:22 -0000
@@ -212,7 +212,7 @@
 	if ((hdr->ceItem.mask & CBEIF_TEXT) && is_textW(wstr)) {
 	    len = WideCharToMultiByte (CP_ACP, 0, wstr, -1, 0, 0, NULL, NULL);
 	    if (len > 0) {
-		astr = (LPSTR)COMCTL32_Alloc ((len + 1)*sizeof(CHAR));
+		astr = (LPSTR)Alloc ((len + 1)*sizeof(CHAR));
 		if (!astr) return 0;
 		WideCharToMultiByte (CP_ACP, 0, wstr, -1, astr, len, 0, 0);
 		hdr->ceItem.pszText = (LPWSTR)astr;
@@ -228,7 +228,7 @@
 	if (astr && hdr->ceItem.pszText == (LPWSTR)astr)
 	    hdr->ceItem.pszText = wstr;
 
-	if (astr) COMCTL32_Free(astr);
+	if (astr) Free(astr);
 
 	return ret;
     }
@@ -277,9 +277,9 @@
 
 static void COMBOEX_FreeText (CBE_ITEMDATA *item)
 {
-    if (is_textW(item->pszText)) COMCTL32_Free(item->pszText);
+    if (is_textW(item->pszText)) Free(item->pszText);
     item->pszText = 0;
-    if (item->pszTemp) COMCTL32_Free(item->pszTemp);
+    if (item->pszTemp) Free(item->pszTemp);
     item->pszTemp = 0;
 }
 
@@ -300,14 +300,14 @@
 
     if (is_textW(nmce.ceItem.pszText)) {
 	len = MultiByteToWideChar (CP_ACP, 0, (LPSTR)nmce.ceItem.pszText, -1, NULL, 0);
-	buf = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	buf = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
 	if (buf)
 	    MultiByteToWideChar (CP_ACP, 0, (LPSTR)nmce.ceItem.pszText, -1, buf, len);
 	if (nmce.ceItem.mask & CBEIF_DI_SETITEM) {
 	    COMBOEX_FreeText(item);
 	    item->pszText = buf;
 	} else {
-	    if (item->pszTemp) COMCTL32_Free(item->pszTemp);
+	    if (item->pszTemp) Free(item->pszTemp);
 	    item->pszTemp = buf;
 	}
 	text = buf;
@@ -569,7 +569,7 @@
     if (index > infoPtr->nb_items) index = infoPtr->nb_items;
 
     /* get zero-filled space and chain it in */
-    if(!(item = (CBE_ITEMDATA *)COMCTL32_Alloc (sizeof(*item)))) return -1;
+    if(!(item = (CBE_ITEMDATA *)Alloc (sizeof(*item)))) return -1;
 
     /* locate position to insert new item in */
     if (index == infoPtr->nb_items) {
@@ -587,7 +587,7 @@
 	}
 	if (!moving) {
 	    ERR("COMBOBOXEX item structures broken. Please report!\n");
-	    COMCTL32_Free(item);
+	    Free(item);
 	    return -1;
 	}
 	item->next = moving->next;
@@ -601,9 +601,9 @@
 
         if (is_textW(cit->pszText)) len = strlenW (cit->pszText);
 	if (len > 0) {
-	    item->pszText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	    item->pszText = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
 	    if (!item->pszText) {
-		COMCTL32_Free(item);
+		Free(item);
 		return -1;
 	    }
 	    strcpyW (item->pszText, cit->pszText);
@@ -647,14 +647,14 @@
     memcpy(&citW,cit,sizeof(COMBOBOXEXITEMA));
     if (cit->mask & CBEIF_TEXT && is_textA(cit->pszText)) {
 	INT len = MultiByteToWideChar (CP_ACP, 0, cit->pszText, -1, NULL, 0);
-	wstr = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	wstr = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
 	if (!wstr) return -1;
 	MultiByteToWideChar (CP_ACP, 0, cit->pszText, -1, wstr, len);
 	citW.pszText = wstr;
     }
     ret = COMBOEX_InsertItemW(infoPtr, &citW);
 
-    if (wstr) COMCTL32_Free(wstr);
+    if (wstr) Free(wstr);
 
     return ret;
 }
@@ -736,7 +736,7 @@
 	COMBOEX_FreeText(item);
         if (is_textW(cit->pszText)) len = strlenW(cit->pszText);
 	if (len > 0) {
-	    item->pszText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	    item->pszText = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
 	    if (!item->pszText) return FALSE;
 	    strcpyW(item->pszText, cit->pszText);
 	} else if (cit->pszText == LPSTR_TEXTCALLBACKW)
@@ -773,14 +773,14 @@
     memcpy(&citW, cit, sizeof(COMBOBOXEXITEMA));
     if ((cit->mask & CBEIF_TEXT) && is_textA(cit->pszText)) {
 	INT len = MultiByteToWideChar (CP_ACP, 0, cit->pszText, -1, NULL, 0);
-	wstr = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	wstr = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
 	if (!wstr) return FALSE;
 	MultiByteToWideChar (CP_ACP, 0, cit->pszText, -1, wstr, len);
 	citW.pszText = wstr;
     }
     ret = COMBOEX_SetItemW(infoPtr, &citW);
 
-    if (wstr) COMCTL32_Free(wstr);
+    if (wstr) Free(wstr);
 
     return ret;
 }
@@ -925,7 +925,7 @@
     INT i;
 
     /* allocate memory for info structure */
-    infoPtr = (COMBOEX_INFO *)COMCTL32_Alloc (sizeof(COMBOEX_INFO));
+    infoPtr = (COMBOEX_INFO *)Alloc (sizeof(COMBOEX_INFO));
     if (!infoPtr) return -1;
 
     /* initialize info structure */
@@ -1060,7 +1060,7 @@
      * Create an item structure to represent the data in the
      * EDIT control. It is allocated zero-filled.
      */
-    infoPtr->edit = (CBE_ITEMDATA *)COMCTL32_Alloc (sizeof (CBE_ITEMDATA));
+    infoPtr->edit = (CBE_ITEMDATA *)Alloc (sizeof (CBE_ITEMDATA));
     if (!infoPtr->edit) {
 	COMBOEX_Destroy(infoPtr);
 	return -1;
@@ -1273,7 +1273,7 @@
     COMBOEX_NotifyItem (infoPtr, CBEN_DELETEITEM, &nmcit);
 
     COMBOEX_FreeText(olditem);
-    COMCTL32_Free(olditem);
+    Free(olditem);
 
     return TRUE;
 }
@@ -1360,7 +1360,7 @@
 	    item->mask &= ~CBEIF_TEXT;
 	    if( (len = GetWindowTextLengthW(infoPtr->hwndEdit)) ) {
 		item->mask |= CBEIF_TEXT;
-		item->pszText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+		item->pszText = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
 		if (item->pszText)
 		    GetWindowTextW(infoPtr->hwndEdit, item->pszText, len+1);
 
@@ -1524,7 +1524,7 @@
 	DestroyWindow (infoPtr->hwndCombo);
 
     if (infoPtr->edit) {
-	COMCTL32_Free (infoPtr->edit);
+	Free (infoPtr->edit);
 	infoPtr->edit = 0;
     }
 
@@ -1535,7 +1535,7 @@
 	while (item) {
 	    next = (CBE_ITEMDATA *)item->next;
 	    COMBOEX_FreeText (item);
-	    COMCTL32_Free (item);
+	    Free (item);
 	    item = next;
 	}
 	infoPtr->items = 0;
@@ -1545,7 +1545,7 @@
 	DeleteObject (infoPtr->defaultFont);
 
     /* free comboex info data */
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongW (infoPtr->hwndSelf, 0, 0);
     return 0;
 }
Index: dlls/comctl32/comctl32.h
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/comctl32.h,v
retrieving revision 1.24
diff -u -r1.24 comctl32.h
--- dlls/comctl32/comctl32.h	17 Sep 2003 22:42:04 -0000	1.24
+++ dlls/comctl32/comctl32.h	22 Sep 2003 19:36:56 -0000
@@ -162,11 +162,6 @@
 BOOL   WINAPI Free (LPVOID);
 DWORD  WINAPI GetSize (LPVOID);
 
-/* for compatibility with old code */
-#define COMCTL32_Alloc(size) Alloc(size)
-#define COMCTL32_ReAlloc(ptr,size) ReAlloc(ptr,size)
-#define COMCTL32_Free(ptr) Free(ptr)
-
 INT  WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT);
 INT  WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT);
 
Index: dlls/comctl32/datetime.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/datetime.c,v
retrieving revision 1.40
diff -u -r1.40 datetime.c
--- dlls/comctl32/datetime.c	17 Sep 2003 20:15:22 -0000	1.40
+++ dlls/comctl32/datetime.c	22 Sep 2003 19:37:22 -0000
@@ -356,10 +356,10 @@
 	int retval;
         int len = WideCharToMultiByte( CP_ACP, 0, (LPWSTR)lParam, -1, NULL, 0, NULL, NULL );
 
- 	buf = (LPSTR) COMCTL32_Alloc (len);
+ 	buf = (LPSTR) Alloc (len);
         WideCharToMultiByte( CP_ACP, 0, (LPWSTR)lParam, -1, buf, len, NULL, NULL );
 	retval=DATETIME_SetFormat (hwnd, 0, (LPARAM) buf);
-	COMCTL32_Free (buf);
+	Free (buf);
 	return retval;
  }
  else
@@ -1196,7 +1196,7 @@
 
   /* allocate memory for info structure */
   TRACE("%04x %08lx\n",wParam,lParam);
-  infoPtr = (DATETIME_INFO *)COMCTL32_Alloc (sizeof(DATETIME_INFO));
+  infoPtr = (DATETIME_INFO *)Alloc (sizeof(DATETIME_INFO));
   if (infoPtr == NULL) {
     ERR("could not allocate info memory!\n");
     return 0;
@@ -1221,9 +1221,9 @@
         UD_MAXVAL, UD_MINVAL, 0);
   }
 
-  infoPtr->fieldspec = (int *) COMCTL32_Alloc (32*sizeof(int));
-  infoPtr->fieldRect = (RECT *) COMCTL32_Alloc (32*sizeof(RECT));
-  infoPtr->buflen = (int *) COMCTL32_Alloc (32*sizeof(int));
+  infoPtr->fieldspec = (int *) Alloc (32*sizeof(int));
+  infoPtr->fieldRect = (RECT *) Alloc (32*sizeof(RECT));
+  infoPtr->buflen = (int *) Alloc (32*sizeof(int));
   infoPtr->nrFieldsAllocated = 32;
 
   DATETIME_SetFormat (hwnd, 0, 0);
@@ -1249,7 +1249,7 @@
     DATETIME_INFO *infoPtr = DATETIME_GetInfoPtr (hwnd);
 
     TRACE("\n");
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongA( hwnd, 0, 0 );
     return 0;
 }
Index: dlls/comctl32/header.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/header.c,v
retrieving revision 1.58
diff -u -r1.58 header.c
--- dlls/comctl32/header.c	17 Sep 2003 04:28:28 -0000	1.58
+++ dlls/comctl32/header.c	22 Sep 2003 19:37:23 -0000
@@ -599,8 +599,8 @@
     if (infoPtr->uNumItem == 1) {
         TRACE("Simple delete!\n");
         if (infoPtr->items[0].pszText)
-            COMCTL32_Free (infoPtr->items[0].pszText);
-        COMCTL32_Free (infoPtr->items);
+            Free (infoPtr->items[0].pszText);
+        Free (infoPtr->items);
         infoPtr->items = 0;
         infoPtr->uNumItem = 0;
     }
@@ -612,11 +612,11 @@
         TRACE("Complex delete! [iItem=%d]\n", iItem);
 
         if (infoPtr->items[iItem].pszText)
-            COMCTL32_Free (infoPtr->items[iItem].pszText);
+            Free (infoPtr->items[iItem].pszText);
         iOrder = infoPtr->items[iItem].iOrder;
 
         infoPtr->uNumItem--;
-        infoPtr->items = COMCTL32_Alloc (sizeof (HEADER_ITEM) * infoPtr->uNumItem);
+        infoPtr->items = Alloc (sizeof (HEADER_ITEM) * infoPtr->uNumItem);
         /* pre delete copy */
         if (iItem > 0) {
             memcpy (&infoPtr->items[0], &oldItems[0],
@@ -635,7 +635,7 @@
             if (pItem->iOrder > iOrder)
             pItem->iOrder--;
         }
-        COMCTL32_Free (oldItems);
+        Free (oldItems);
     }
 
     HEADER_SetItemBounds (hwnd);
@@ -861,14 +861,14 @@
     iOrder = (phdi->mask & HDI_ORDER) ? phdi->iOrder : nItem;
 
     if (infoPtr->uNumItem == 0) {
-        infoPtr->items = COMCTL32_Alloc (sizeof (HEADER_ITEM));
+        infoPtr->items = Alloc (sizeof (HEADER_ITEM));
         infoPtr->uNumItem++;
     }
     else {
         HEADER_ITEM *oldItems = infoPtr->items;
 
         infoPtr->uNumItem++;
-        infoPtr->items = COMCTL32_Alloc (sizeof (HEADER_ITEM) * infoPtr->uNumItem);
+        infoPtr->items = Alloc (sizeof (HEADER_ITEM) * infoPtr->uNumItem);
         if (nItem == 0) {
             memcpy (&infoPtr->items[1], &oldItems[0],
                     (infoPtr->uNumItem-1) * sizeof(HEADER_ITEM));
@@ -888,7 +888,7 @@
             }
         }
 
-        COMCTL32_Free (oldItems);
+        Free (oldItems);
     }
 
     for (i=0; i < infoPtr->uNumItem; i++)
@@ -908,7 +908,7 @@
 	    phdi->pszText = "";
 	if (phdi->pszText != LPSTR_TEXTCALLBACKA) {
 	    len = MultiByteToWideChar(CP_ACP, 0, phdi->pszText, -1, NULL, 0);
-	    lpItem->pszText = COMCTL32_Alloc( len*sizeof(WCHAR) );
+	    lpItem->pszText = Alloc( len*sizeof(WCHAR) );
 	    MultiByteToWideChar(CP_ACP, 0, phdi->pszText, -1, lpItem->pszText, len);
 	}
 	else
@@ -962,14 +962,14 @@
     iOrder = (phdi->mask & HDI_ORDER) ? phdi->iOrder : nItem;
 
     if (infoPtr->uNumItem == 0) {
-        infoPtr->items = COMCTL32_Alloc (sizeof (HEADER_ITEM));
+        infoPtr->items = Alloc (sizeof (HEADER_ITEM));
         infoPtr->uNumItem++;
     }
     else {
         HEADER_ITEM *oldItems = infoPtr->items;
 
         infoPtr->uNumItem++;
-        infoPtr->items = COMCTL32_Alloc (sizeof (HEADER_ITEM) * infoPtr->uNumItem);
+        infoPtr->items = Alloc (sizeof (HEADER_ITEM) * infoPtr->uNumItem);
         if (nItem == 0) {
             memcpy (&infoPtr->items[1], &oldItems[0],
                     (infoPtr->uNumItem-1) * sizeof(HEADER_ITEM));
@@ -989,7 +989,7 @@
             }
         }
 
-        COMCTL32_Free (oldItems);
+        Free (oldItems);
     }
 
     for (i=0; i < infoPtr->uNumItem; i++)
@@ -1010,7 +1010,7 @@
 	    phdi->pszText = &wide_null_char;
 	if (phdi->pszText != LPSTR_TEXTCALLBACKW) {
 	    len = strlenW (phdi->pszText);
-	    lpItem->pszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
+	    lpItem->pszText = Alloc ((len+1)*sizeof(WCHAR));
 	    strcpyW (lpItem->pszText, phdi->pszText);
 	}
 	else
@@ -1122,12 +1122,12 @@
     if (phdi->mask & HDI_TEXT) {
 	if (phdi->pszText != LPSTR_TEXTCALLBACKA) {
 	    if (lpItem->pszText) {
-		COMCTL32_Free (lpItem->pszText);
+		Free (lpItem->pszText);
 		lpItem->pszText = NULL;
 	    }
 	    if (phdi->pszText) {
 		INT len = MultiByteToWideChar (CP_ACP,0,phdi->pszText,-1,NULL,0);
-		lpItem->pszText = COMCTL32_Alloc( len*sizeof(WCHAR) );
+		lpItem->pszText = Alloc( len*sizeof(WCHAR) );
 		MultiByteToWideChar (CP_ACP,0,phdi->pszText,-1,lpItem->pszText,len);
 	    }
 	}
@@ -1189,12 +1189,12 @@
     if (phdi->mask & HDI_TEXT) {
 	if (phdi->pszText != LPSTR_TEXTCALLBACKW) {
 	    if (lpItem->pszText) {
-		COMCTL32_Free (lpItem->pszText);
+		Free (lpItem->pszText);
 		lpItem->pszText = NULL;
 	    }
 	    if (phdi->pszText) {
 		INT len = strlenW (phdi->pszText);
-		lpItem->pszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
+		lpItem->pszText = Alloc ((len+1)*sizeof(WCHAR));
 		strcpyW (lpItem->pszText, phdi->pszText);
 	    }
 	}
@@ -1244,7 +1244,7 @@
     HFONT hOldFont;
     HDC   hdc;
 
-    infoPtr = (HEADER_INFO *)COMCTL32_Alloc (sizeof(HEADER_INFO));
+    infoPtr = (HEADER_INFO *)Alloc (sizeof(HEADER_INFO));
     SetWindowLongA (hwnd, 0, (DWORD)infoPtr);
 
     infoPtr->hwndNotify = GetParent(hwnd);
@@ -1286,15 +1286,15 @@
         lpItem = infoPtr->items;
         for (nItem = 0; nItem < infoPtr->uNumItem; nItem++, lpItem++) {
 	    if ((lpItem->pszText) && (lpItem->pszText != LPSTR_TEXTCALLBACKW))
-		COMCTL32_Free (lpItem->pszText);
+		Free (lpItem->pszText);
         }
-        COMCTL32_Free (infoPtr->items);
+        Free (infoPtr->items);
     }
 
     if (infoPtr->himl)
 	ImageList_Destroy (infoPtr->himl);
 
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongA (hwnd, 0, 0);
     return 0;
 }
Index: dlls/comctl32/hotkey.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/hotkey.c,v
retrieving revision 1.26
diff -u -r1.26 hotkey.c
--- dlls/comctl32/hotkey.c	5 Sep 2003 23:08:43 -0000	1.26
+++ dlls/comctl32/hotkey.c	22 Sep 2003 19:37:23 -0000
@@ -215,7 +215,7 @@
     HDC hdc;
 
     /* allocate memory for info structure */
-    infoPtr = (HOTKEY_INFO *)COMCTL32_Alloc (sizeof(HOTKEY_INFO));
+    infoPtr = (HOTKEY_INFO *)Alloc (sizeof(HOTKEY_INFO));
     SetWindowLongW (hwnd, 0, (DWORD)infoPtr);
 
     /* initialize info structure */
@@ -239,7 +239,7 @@
 {
     HWND hwnd = infoPtr->hwndSelf;
     /* free hotkey info data */
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongW (hwnd, 0, 0);
     return 0;
 }
Index: dlls/comctl32/imagelist.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/imagelist.c,v
retrieving revision 1.78
diff -u -r1.78 imagelist.c
--- dlls/comctl32/imagelist.c	17 Sep 2003 20:15:22 -0000	1.78
+++ dlls/comctl32/imagelist.c	22 Sep 2003 19:37:23 -0000
@@ -553,7 +553,7 @@
 
     TRACE("(%d %d 0x%x %d %d)\n", cx, cy, flags, cInitial, cGrow);
 
-    himl = (HIMAGELIST)COMCTL32_Alloc (sizeof(struct _IMAGELIST));
+    himl = (HIMAGELIST)Alloc (sizeof(struct _IMAGELIST));
     if (!himl)
         return NULL;
 
@@ -665,7 +665,7 @@
         DeleteObject (himl->hbrBlend50);
 
     ZeroMemory(himl, sizeof(*himl));
-    COMCTL32_Free (himl);
+    Free (himl);
 
     return TRUE;
 }
Index: dlls/comctl32/ipaddress.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/ipaddress.c,v
retrieving revision 1.33
diff -u -r1.33 ipaddress.c
--- dlls/comctl32/ipaddress.c	17 Sep 2003 20:15:22 -0000	1.33
+++ dlls/comctl32/ipaddress.c	22 Sep 2003 19:37:23 -0000
@@ -161,7 +161,7 @@
     SetWindowLongW (hwnd, GWL_STYLE,
 		    GetWindowLongW(hwnd, GWL_STYLE) & ~WS_BORDER);
 
-    infoPtr = (IPADDRESS_INFO *)COMCTL32_Alloc (sizeof(IPADDRESS_INFO));
+    infoPtr = (IPADDRESS_INFO *)Alloc (sizeof(IPADDRESS_INFO));
     if (!infoPtr) return -1;
     SetWindowLongW (hwnd, 0, (DWORD)infoPtr);
 
@@ -208,7 +208,7 @@
     }
 
     SetWindowLongW (infoPtr->Self, 0, 0);
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     return 0;
 }
 
Index: dlls/comctl32/listview.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/listview.c,v
retrieving revision 1.366
diff -u -r1.366 listview.c
--- dlls/comctl32/listview.c	17 Sep 2003 20:15:21 -0000	1.366
+++ dlls/comctl32/listview.c	22 Sep 2003 19:37:23 -0000
@@ -465,7 +465,7 @@
     
     if (src == LPSTR_TEXTCALLBACKW)
     {
-	if (is_textW(*dest)) COMCTL32_Free(*dest);
+	if (is_textW(*dest)) Free(*dest);
 	*dest = LPSTR_TEXTCALLBACKW;
     }
     else
@@ -2492,11 +2492,11 @@
 
 static RANGES ranges_create(int count)
 {
-    RANGES ranges = (RANGES)COMCTL32_Alloc(sizeof(struct tagRANGES));
+    RANGES ranges = (RANGES)Alloc(sizeof(struct tagRANGES));
     if (!ranges) return NULL;
     ranges->hdpa = DPA_Create(count);
     if (ranges->hdpa) return ranges;
-    COMCTL32_Free(ranges);
+    Free(ranges);
     return NULL;
 }
 
@@ -2505,7 +2505,7 @@
     INT i;
 	
     for(i = 0; i < DPA_GetPtrCount(ranges->hdpa); i++)
-	COMCTL32_Free(DPA_GetPtr(ranges->hdpa, i));
+	Free(DPA_GetPtr(ranges->hdpa, i));
     DPA_DeleteAllPtrs(ranges->hdpa);
 }
 
@@ -2515,7 +2515,7 @@
     if (!ranges) return;
     ranges_clear(ranges);
     DPA_Destroy(ranges->hdpa);
-    COMCTL32_Free(ranges);
+    Free(ranges);
 }
 
 static RANGES ranges_clone(RANGES ranges)
@@ -2527,7 +2527,7 @@
 
     for (i = 0; i < DPA_GetPtrCount(ranges->hdpa); i++)
     {
-        RANGE *newrng = (RANGE *)COMCTL32_Alloc(sizeof(RANGE));
+        RANGE *newrng = (RANGE *)Alloc(sizeof(RANGE));
 	if (!newrng) goto fail;
 	*newrng = *((RANGE*)DPA_GetPtr(ranges->hdpa, i));
 	DPA_SetPtr(clone->hdpa, i, newrng);
@@ -2619,7 +2619,7 @@
 	TRACE("Adding new range\n");
 
 	/* create the brand new range to insert */	
-        newrgn = (RANGE *)COMCTL32_Alloc(sizeof(RANGE));
+        newrgn = (RANGE *)Alloc(sizeof(RANGE));
 	if(!newrgn) goto fail;
 	*newrgn = range;
 	
@@ -2631,7 +2631,7 @@
 	/* and get it over with */
 	if (DPA_InsertPtr(ranges->hdpa, index, newrgn) == -1)
 	{
-	    COMCTL32_Free(newrgn);
+	    Free(newrgn);
 	    goto fail;
 	}
     }
@@ -2668,7 +2668,7 @@
 	    mrgrgn = DPA_GetPtr(ranges->hdpa, mergeindex);
 	    chkrgn->lower = min(chkrgn->lower, mrgrgn->lower);
 	    chkrgn->upper = max(chkrgn->upper, mrgrgn->upper);
-	    COMCTL32_Free(mrgrgn);
+	    Free(mrgrgn);
 	    DPA_DeletePtr(ranges->hdpa, mergeindex);
 	    if (mergeindex < index) index --;
 	} while(1);
@@ -2730,13 +2730,13 @@
 	{
 	    RANGE tmprgn = *chkrgn, *newrgn;
 
-	    if (!(newrgn = (RANGE *)COMCTL32_Alloc(sizeof(RANGE)))) goto fail;
+	    if (!(newrgn = (RANGE *)Alloc(sizeof(RANGE)))) goto fail;
 	    newrgn->lower = chkrgn->lower;
 	    newrgn->upper = range.lower;
 	    chkrgn->lower = range.upper;
 	    if (DPA_InsertPtr(ranges->hdpa, index, newrgn) == -1)
 	    {
-		COMCTL32_Free(newrgn);
+		Free(newrgn);
 		goto fail;
 	    }
 	    chkrgn = &tmprgn;
@@ -3347,7 +3347,7 @@
 	SUBITEM_INFO *tmpSubItem;
 	INT i;
 
-	lpSubItem = (SUBITEM_INFO *)COMCTL32_Alloc(sizeof(SUBITEM_INFO));
+	lpSubItem = (SUBITEM_INFO *)Alloc(sizeof(SUBITEM_INFO));
 	if (!lpSubItem) return FALSE;
 	/* we could binary search here, if need be...*/
   	for (i = 1; i < DPA_GetPtrCount(hdpaSubItems); i++)
@@ -3357,7 +3357,7 @@
   	}
 	if (DPA_InsertPtr(hdpaSubItems, i, lpSubItem) == -1)
 	{
-	    COMCTL32_Free(lpSubItem);
+	    Free(lpSubItem);
 	    return FALSE;
 	}
         lpSubItem->iSubItem = lpLVItem->iSubItem;
@@ -4020,8 +4020,8 @@
 	    for (j = 0; j < DPA_GetPtrCount(hdpaSubItems); j++)
 	    {
 		hdrItem = (ITEMHDR *)DPA_GetPtr(hdpaSubItems, j);
-		if (is_textW(hdrItem->pszText)) COMCTL32_Free(hdrItem->pszText);
-		COMCTL32_Free(hdrItem);
+		if (is_textW(hdrItem->pszText)) Free(hdrItem->pszText);
+		Free(hdrItem);
 	    }
 	    DPA_Destroy(hdpaSubItems);
 	    DPA_DeletePtr(infoPtr->hdpaItems, i);
@@ -4125,7 +4125,7 @@
     if (!Header_DeleteItem(infoPtr->hwndHeader, nColumn))
 	return FALSE;
 
-    COMCTL32_Free(DPA_GetPtr(infoPtr->hdpaColumns, nColumn));
+    Free(DPA_GetPtr(infoPtr->hdpaColumns, nColumn));
     DPA_DeletePtr(infoPtr->hdpaColumns, nColumn);
   
     if (!(infoPtr->dwStyle & LVS_OWNERDATA))
@@ -4161,10 +4161,10 @@
 	    {
 		/* free string */
 		if (is_textW(lpDelItem->hdr.pszText))
-		    COMCTL32_Free(lpDelItem->hdr.pszText);
+		    Free(lpDelItem->hdr.pszText);
 
 		/* free item */
-		COMCTL32_Free(lpDelItem);
+		Free(lpDelItem);
 
 		/* free dpa memory */
 		DPA_DeletePtr(hdpaSubItems, nSubItem);
@@ -4297,8 +4297,8 @@
 	for (i = 0; i < DPA_GetPtrCount(hdpaSubItems); i++)
     	{
             hdrItem = (ITEMHDR *)DPA_GetPtr(hdpaSubItems, i);
-	    if (is_textW(hdrItem->pszText)) COMCTL32_Free(hdrItem->pszText);
-            COMCTL32_Free(hdrItem);
+	    if (is_textW(hdrItem->pszText)) Free(hdrItem->pszText);
+            Free(hdrItem);
         }
         DPA_Destroy(hdpaSubItems);
     }
@@ -5928,7 +5928,7 @@
 
     if (!is_assignable_item(lpLVItem, infoPtr->dwStyle)) return -1;
 
-    if ( !(lpItem = (ITEM_INFO *)COMCTL32_Alloc(sizeof(ITEM_INFO))) )
+    if ( !(lpItem = (ITEM_INFO *)Alloc(sizeof(ITEM_INFO))) )
 	return -1;
     
     /* insert item in listview control data structure */
@@ -6017,7 +6017,7 @@
 fail:
     DPA_DeletePtr(hdpaSubItems, 0);
     DPA_Destroy (hdpaSubItems);
-    COMCTL32_Free (lpItem);
+    Free (lpItem);
     return -1;
 }
 
@@ -6243,7 +6243,7 @@
     if (nNewColumn != nColumn) ERR("nColumn=%d, nNewColumn=%d\n", nColumn, nNewColumn);
    
     /* create our own column info */ 
-    if (!(lpColumnInfo = COMCTL32_Alloc(sizeof(COLUMN_INFO)))) goto fail;
+    if (!(lpColumnInfo = Alloc(sizeof(COLUMN_INFO)))) goto fail;
     if (DPA_InsertPtr(infoPtr->hdpaColumns, nNewColumn, lpColumnInfo) == -1) goto fail;
 
     if (lpColumn->mask & LVCF_FMT) lpColumnInfo->fmt = lpColumn->fmt;
@@ -6278,7 +6278,7 @@
     if (lpColumnInfo)
     {
 	DPA_DeletePtr(infoPtr->hdpaColumns, nNewColumn);
-	COMCTL32_Free(lpColumnInfo);
+	Free(lpColumnInfo);
     }
     return -1;
 }
@@ -7144,7 +7144,7 @@
   TRACE("(lpcs=%p)\n", lpcs);
 
   /* initialize info pointer */
-  infoPtr = (LISTVIEW_INFO *)COMCTL32_Alloc(sizeof(LISTVIEW_INFO));
+  infoPtr = (LISTVIEW_INFO *)Alloc(sizeof(LISTVIEW_INFO));
   if (!infoPtr) return -1;
 
   SetWindowLongW(hwnd, 0, (LONG)infoPtr);
@@ -7229,7 +7229,7 @@
     DPA_Destroy(infoPtr->hdpaPosX);
     DPA_Destroy(infoPtr->hdpaPosY);
     DPA_Destroy(infoPtr->hdpaColumns);
-    COMCTL32_Free(infoPtr);
+    Free(infoPtr);
     return -1;
 }
 
@@ -7861,7 +7861,7 @@
   SetWindowLongW(infoPtr->hwndSelf, 0, 0);
 
   /* free listview info pointer*/
-  COMCTL32_Free(infoPtr);
+  Free(infoPtr);
 
   return 0;
 }
@@ -9107,7 +9107,7 @@
 
 	    if (len)
 	    {
-		if ( (buffer = COMCTL32_Alloc((len+1) * (isW ? sizeof(WCHAR) : sizeof(CHAR)))) )
+		if ( (buffer = Alloc((len+1) * (isW ? sizeof(WCHAR) : sizeof(CHAR)))) )
 		{
 		    if (isW) GetWindowTextW(hwnd, buffer, len+1);
 		    else GetWindowTextA(hwnd, (CHAR*)buffer, len+1);
@@ -9116,7 +9116,7 @@
 	}
 	LISTVIEW_EndEditLabelT(infoPtr, buffer, isW);
 
-	if (buffer) COMCTL32_Free(buffer);
+	if (buffer) Free(buffer);
 
     }
 
Index: dlls/comctl32/monthcal.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/monthcal.c,v
retrieving revision 1.41
diff -u -r1.41 monthcal.c
--- dlls/comctl32/monthcal.c	17 Sep 2003 04:28:28 -0000	1.41
+++ dlls/comctl32/monthcal.c	22 Sep 2003 19:37:23 -0000
@@ -975,7 +975,7 @@
   infoPtr->monthRange = infoPtr->maxDate.wMonth - infoPtr->minDate.wMonth;
 
   if(infoPtr->monthRange!=prev) {
-	infoPtr->monthdayState = COMCTL32_ReAlloc(infoPtr->monthdayState,
+	infoPtr->monthdayState = ReAlloc(infoPtr->monthdayState,
                                                   infoPtr->monthRange * sizeof(MONTHDAYSTATE));
   }
 
@@ -1302,7 +1302,7 @@
     nmds.nmhdr.idFrom   = GetWindowLongA(hwnd, GWL_ID);
     nmds.nmhdr.code     = MCN_GETDAYSTATE;
     nmds.cDayState	= infoPtr->monthRange;
-    nmds.prgDayState	= COMCTL32_Alloc(infoPtr->monthRange * sizeof(MONTHDAYSTATE));
+    nmds.prgDayState	= Alloc(infoPtr->monthRange * sizeof(MONTHDAYSTATE));
 
     SendMessageA(GetParent(hwnd), WM_NOTIFY,
     (WPARAM)nmds.nmhdr.idFrom, (LPARAM)&nmds);
@@ -1332,7 +1332,7 @@
     nmds.nmhdr.idFrom   = GetWindowLongA(hwnd, GWL_ID);
     nmds.nmhdr.code     = MCN_GETDAYSTATE;
     nmds.cDayState	= infoPtr->monthRange;
-    nmds.prgDayState	= COMCTL32_Alloc
+    nmds.prgDayState	= Alloc
                         (infoPtr->monthRange * sizeof(MONTHDAYSTATE));
 
     SendMessageA(GetParent(hwnd), WM_NOTIFY,
@@ -1869,7 +1869,7 @@
   LOGFONTA	logFont;
 
   /* allocate memory for info structure */
-  infoPtr =(MONTHCAL_INFO*)COMCTL32_Alloc(sizeof(MONTHCAL_INFO));
+  infoPtr =(MONTHCAL_INFO*)Alloc(sizeof(MONTHCAL_INFO));
   SetWindowLongA(hwnd, 0, (DWORD)infoPtr);
 
   if(infoPtr == NULL) {
@@ -1897,7 +1897,7 @@
   MONTHCAL_CopyTime(&infoPtr->todaysDate, &infoPtr->maxDate);
   infoPtr->maxSelCount  = 7;
   infoPtr->monthRange = 3;
-  infoPtr->monthdayState = COMCTL32_Alloc
+  infoPtr->monthdayState = Alloc
                          (infoPtr->monthRange * sizeof(MONTHDAYSTATE));
   infoPtr->titlebk     = GetSysColor(COLOR_ACTIVECAPTION);
   infoPtr->titletxt    = GetSysColor(COLOR_WINDOW);
@@ -1921,8 +1921,8 @@
 
   /* free month calendar info data */
   if(infoPtr->monthdayState)
-      COMCTL32_Free(infoPtr->monthdayState);
-  COMCTL32_Free(infoPtr);
+      Free(infoPtr->monthdayState);
+  Free(infoPtr);
   SetWindowLongA(hwnd, 0, 0);
   return 0;
 }
Index: dlls/comctl32/nativefont.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/nativefont.c,v
retrieving revision 1.20
diff -u -r1.20 nativefont.c
--- dlls/comctl32/nativefont.c	17 Sep 2003 20:15:21 -0000	1.20
+++ dlls/comctl32/nativefont.c	22 Sep 2003 19:37:23 -0000
@@ -54,7 +54,7 @@
     NATIVEFONT_INFO *infoPtr;
 
     /* allocate memory for info structure */
-    infoPtr = (NATIVEFONT_INFO *)COMCTL32_Alloc (sizeof(NATIVEFONT_INFO));
+    infoPtr = (NATIVEFONT_INFO *)Alloc (sizeof(NATIVEFONT_INFO));
     SetWindowLongA (hwnd, 0, (DWORD)infoPtr);
 
 
@@ -74,7 +74,7 @@
 
 
     /* free comboex info data */
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongA( hwnd, 0, 0 );
 
     return 0;
Index: dlls/comctl32/pager.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/pager.c,v
retrieving revision 1.44
diff -u -r1.44 pager.c
--- dlls/comctl32/pager.c	17 Sep 2003 20:15:21 -0000	1.44
+++ dlls/comctl32/pager.c	22 Sep 2003 19:37:23 -0000
@@ -838,7 +838,7 @@
     DWORD dwStyle = GetWindowLongA (hwnd, GWL_STYLE);
 
     /* allocate memory for info structure */
-    infoPtr = (PAGER_INFO *)COMCTL32_Alloc (sizeof(PAGER_INFO));
+    infoPtr = (PAGER_INFO *)Alloc (sizeof(PAGER_INFO));
     SetWindowLongA (hwnd, 0, (DWORD)infoPtr);
 
     /* set default settings */
@@ -878,7 +878,7 @@
 {
     PAGER_INFO *infoPtr = PAGER_GetInfoPtr (hwnd);
     /* free pager info data */
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongA (hwnd, 0, 0);
     return 0;
 }
Index: dlls/comctl32/progress.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/progress.c,v
retrieving revision 1.34
diff -u -r1.34 progress.c
--- dlls/comctl32/progress.c	17 Sep 2003 20:15:21 -0000	1.34
+++ dlls/comctl32/progress.c	22 Sep 2003 19:37:23 -0000
@@ -294,7 +294,7 @@
 	    SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);
 
         /* allocate memory for info struct */
-        infoPtr = (PROGRESS_INFO *)COMCTL32_Alloc (sizeof(PROGRESS_INFO));
+        infoPtr = (PROGRESS_INFO *)Alloc (sizeof(PROGRESS_INFO));
         if (!infoPtr) return -1;
         SetWindowLongW (hwnd, 0, (DWORD)infoPtr);
 
@@ -313,7 +313,7 @@
 
     case WM_DESTROY:
         TRACE("Progress Ctrl destruction, hwnd=%p\n", hwnd);
-        COMCTL32_Free (infoPtr);
+        Free (infoPtr);
         SetWindowLongW(hwnd, 0, 0);
         return 0;
 
Index: dlls/comctl32/propsheet.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/propsheet.c,v
retrieving revision 1.88
diff -u -r1.88 propsheet.c
--- dlls/comctl32/propsheet.c	10 Sep 2003 03:56:48 -0000	1.88
+++ dlls/comctl32/propsheet.c	22 Sep 2003 19:37:23 -0000
@@ -531,7 +531,7 @@
       pTitle = lppsp->pszTitle;
 
     len = strlenW(pTitle);
-    psInfo->proppage[index].pszText = COMCTL32_Alloc( (len+1)*sizeof (WCHAR) );
+    psInfo->proppage[index].pszText = Alloc( (len+1)*sizeof (WCHAR) );
     strcpyW( (LPWSTR)psInfo->proppage[index].pszText,pTitle);
   }
 
@@ -604,7 +604,7 @@
    */
   resSize = SizeofResource(COMCTL32_hModule, hRes);
 
-  temp = COMCTL32_Alloc(resSize);
+  temp = Alloc(resSize);
 
   if (!temp)
     return -1;
@@ -651,7 +651,7 @@
     }
   }
 
-  COMCTL32_Free(temp);
+  Free(temp);
 
   return ret;
 }
@@ -1433,7 +1433,7 @@
      * Make a copy of the dialog template to make it writable
      */
   }
-  temp = COMCTL32_Alloc(resSize);
+  temp = Alloc(resSize);
   if (!temp)
     return FALSE;
   
@@ -1483,7 +1483,7 @@
 					(LPARAM)ppshpage);
   /* Free a no more needed copy */
   if(temp)
-      COMCTL32_Free(temp);
+      Free(temp);
 
   ppInfo[index].hwndPage = hwndPage;
 
@@ -2101,12 +2101,12 @@
     int lentitle = strlenW(lpszText);
     int lenprop  = strlenW(psInfo->strPropertiesFor);
 
-    dest = COMCTL32_Alloc( (lentitle + lenprop + 1)*sizeof (WCHAR));
+    dest = Alloc( (lentitle + lenprop + 1)*sizeof (WCHAR));
     strcpyW(dest, psInfo->strPropertiesFor);
     strcatW(dest, lpszText);
 
     SetWindowTextW(hwndDlg, dest);
-    COMCTL32_Free(dest);
+    Free(dest);
   }
   else
     SetWindowTextW(hwndDlg, lpszText);
@@ -2201,7 +2201,7 @@
   /*
    * Allocate and fill in a new PropPageInfo entry.
    */
-  psInfo->proppage = (PropPageInfo*) COMCTL32_ReAlloc(psInfo->proppage,
+  psInfo->proppage = (PropPageInfo*) ReAlloc(psInfo->proppage,
                                                       sizeof(PropPageInfo) *
                                                       (psInfo->nPages + 1));
   if (!PROPSHEET_CollectPageInfo(ppsp, psInfo, psInfo->nPages))
@@ -2328,7 +2328,7 @@
   SendMessageW(hwndTabControl, TCM_DELETEITEM, index, 0);
 
   psInfo->nPages--;
-  psInfo->proppage = COMCTL32_Alloc(sizeof(PropPageInfo) * psInfo->nPages);
+  psInfo->proppage = Alloc(sizeof(PropPageInfo) * psInfo->nPages);
 
   if (index > 0)
     memcpy(&psInfo->proppage[0], &oldPages[0], index * sizeof(PropPageInfo));
@@ -2337,7 +2337,7 @@
     memcpy(&psInfo->proppage[index], &oldPages[index + 1],
            (psInfo->nPages - index) * sizeof(PropPageInfo));
 
-  COMCTL32_Free(oldPages);
+  Free(oldPages);
 
   return FALSE;
 }
@@ -2450,8 +2450,8 @@
      }
   }
 
-  COMCTL32_Free(psInfo->proppage);
-  COMCTL32_Free(psInfo->strPropertiesFor);
+  Free(psInfo->proppage);
+  Free(psInfo->strPropertiesFor);
   ImageList_Destroy(psInfo->hImageList);
 
   GlobalFree((HGLOBAL)psInfo);
@@ -2473,7 +2473,7 @@
 
   PROPSHEET_CollectSheetInfoA(lppsh, psInfo);
 
-  psInfo->proppage = (PropPageInfo*) COMCTL32_Alloc(sizeof(PropPageInfo) *
+  psInfo->proppage = (PropPageInfo*) Alloc(sizeof(PropPageInfo) *
                                                     lppsh->nPages);
   pByte = (BYTE*) psInfo->ppshheader.u3.ppsp;
 
@@ -2518,7 +2518,7 @@
 
   PROPSHEET_CollectSheetInfoW(lppsh, psInfo);
 
-  psInfo->proppage = (PropPageInfo*) COMCTL32_Alloc(sizeof(PropPageInfo) *
+  psInfo->proppage = (PropPageInfo*) Alloc(sizeof(PropPageInfo) *
                                                     lppsh->nPages);
   pByte = (BYTE*) psInfo->ppshheader.u3.ppsp;
 
@@ -2555,7 +2555,7 @@
 HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(
                           LPCPROPSHEETPAGEA lpPropSheetPage)
 {
-  PROPSHEETPAGEW* ppsp = COMCTL32_Alloc(sizeof(PROPSHEETPAGEW));
+  PROPSHEETPAGEW* ppsp = Alloc(sizeof(PROPSHEETPAGEW));
 
   memcpy(ppsp,lpPropSheetPage,min(lpPropSheetPage->dwSize,sizeof(PROPSHEETPAGEA)));
 
@@ -2587,7 +2587,7 @@
  */
 HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage)
 {
-  PROPSHEETPAGEW* ppsp = COMCTL32_Alloc(sizeof(PROPSHEETPAGEW));
+  PROPSHEETPAGEW* ppsp = Alloc(sizeof(PROPSHEETPAGEW));
 
   memcpy(ppsp,lpPropSheetPage,min(lpPropSheetPage->dwSize,sizeof(PROPSHEETPAGEW)));
 
@@ -2638,7 +2638,7 @@
   if ((psp->dwFlags & PSP_USETITLE) && HIWORD( psp->pszTitle ))
       HeapFree(GetProcessHeap(), 0, (LPVOID)psp->pszTitle);
 
-  COMCTL32_Free(hPropPage);
+  Free(hPropPage);
 
   return TRUE;
 }
@@ -2774,7 +2774,7 @@
     case WM_INITDIALOG:
     {
       PropSheetInfo* psInfo = (PropSheetInfo*) lParam;
-      WCHAR* strCaption = (WCHAR*)COMCTL32_Alloc(MAX_CAPTION_LENGTH*sizeof(WCHAR));
+      WCHAR* strCaption = (WCHAR*)Alloc(MAX_CAPTION_LENGTH*sizeof(WCHAR));
       HWND hwndTabCtrl = GetDlgItem(hwnd, IDC_TABCONTROL);
       LPCPROPSHEETPAGEW ppshpage;
       int idx;
Index: dlls/comctl32/rebar.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/rebar.c,v
retrieving revision 1.76
diff -u -r1.76 rebar.c
--- dlls/comctl32/rebar.c	17 Sep 2003 20:15:21 -0000	1.76
+++ dlls/comctl32/rebar.c	22 Sep 2003 19:37:23 -0000
@@ -1716,8 +1716,8 @@
     /*                          indexes by row                         */
 
     if (infoPtr->uNumRows != origrows) {
-	if (infoPtr->rows) COMCTL32_Free (infoPtr->rows);
-	infoPtr->rows = COMCTL32_Alloc (sizeof (REBAR_ROW) * infoPtr->uNumRows);
+	if (infoPtr->rows) Free (infoPtr->rows);
+	infoPtr->rows = Alloc (sizeof (REBAR_ROW) * infoPtr->uNumRows);
     }
 
     row = 0;
@@ -2525,7 +2525,7 @@
 	TRACE(" simple delete!\n");
 	if ((lpBand->fMask & RBBIM_CHILD) && lpBand->hwndChild)
 	    childhwnd = lpBand->hwndChild;
-	COMCTL32_Free (infoPtr->bands);
+	Free (infoPtr->bands);
 	infoPtr->bands = NULL;
 	infoPtr->uNumBands = 0;
     }
@@ -2537,7 +2537,7 @@
 	    childhwnd = lpBand->hwndChild;
 
 	infoPtr->uNumBands--;
-	infoPtr->bands = COMCTL32_Alloc (sizeof (REBAR_BAND) * infoPtr->uNumBands);
+	infoPtr->bands = Alloc (sizeof (REBAR_BAND) * infoPtr->uNumBands);
         if (uBand > 0) {
             memcpy (&infoPtr->bands[0], &oldBands[0],
                     uBand * sizeof(REBAR_BAND));
@@ -2548,7 +2548,7 @@
                     (infoPtr->uNumBands - uBand) * sizeof(REBAR_BAND));
         }
 
-	COMCTL32_Free (oldBands);
+	Free (oldBands);
     }
 
     if (childhwnd)
@@ -2997,13 +2997,13 @@
     REBAR_DumpBandInfo (lprbbi);
 
     if (infoPtr->uNumBands == 0) {
-	infoPtr->bands = (REBAR_BAND *)COMCTL32_Alloc (sizeof (REBAR_BAND));
+	infoPtr->bands = (REBAR_BAND *)Alloc (sizeof (REBAR_BAND));
 	uIndex = 0;
     }
     else {
 	REBAR_BAND *oldBands = infoPtr->bands;
 	infoPtr->bands =
-	    (REBAR_BAND *)COMCTL32_Alloc ((infoPtr->uNumBands+1)*sizeof(REBAR_BAND));
+	    (REBAR_BAND *)Alloc ((infoPtr->uNumBands+1)*sizeof(REBAR_BAND));
 	if (((INT)uIndex == -1) || (uIndex > infoPtr->uNumBands))
 	    uIndex = infoPtr->uNumBands;
 
@@ -3019,7 +3019,7 @@
 		    (infoPtr->uNumBands - uIndex - 1) * sizeof(REBAR_BAND));
 	}
 
-	COMCTL32_Free (oldBands);
+	Free (oldBands);
     }
 
     infoPtr->uNumBands++;
@@ -3040,7 +3040,7 @@
     if ((lprbbi->fMask & RBBIM_TEXT) && (lprbbi->lpText)) {
         INT len = MultiByteToWideChar( CP_ACP, 0, lprbbi->lpText, -1, NULL, 0 );
         if (len > 1) {
-            lpBand->lpText = (LPWSTR)COMCTL32_Alloc (len*sizeof(WCHAR));
+            lpBand->lpText = (LPWSTR)Alloc (len*sizeof(WCHAR));
             MultiByteToWideChar( CP_ACP, 0, lprbbi->lpText, -1, lpBand->lpText, len );
 	}
     }
@@ -3078,13 +3078,13 @@
     REBAR_DumpBandInfo ((LPREBARBANDINFOA)lprbbi);
 
     if (infoPtr->uNumBands == 0) {
-	infoPtr->bands = (REBAR_BAND *)COMCTL32_Alloc (sizeof (REBAR_BAND));
+	infoPtr->bands = (REBAR_BAND *)Alloc (sizeof (REBAR_BAND));
 	uIndex = 0;
     }
     else {
 	REBAR_BAND *oldBands = infoPtr->bands;
 	infoPtr->bands =
-	    (REBAR_BAND *)COMCTL32_Alloc ((infoPtr->uNumBands+1)*sizeof(REBAR_BAND));
+	    (REBAR_BAND *)Alloc ((infoPtr->uNumBands+1)*sizeof(REBAR_BAND));
 	if (((INT)uIndex == -1) || (uIndex > infoPtr->uNumBands))
 	    uIndex = infoPtr->uNumBands;
 
@@ -3100,7 +3100,7 @@
 		    (infoPtr->uNumBands - uIndex - 1) * sizeof(REBAR_BAND));
 	}
 
-	COMCTL32_Free (oldBands);
+	Free (oldBands);
     }
 
     infoPtr->uNumBands++;
@@ -3121,7 +3121,7 @@
     if ((lprbbi->fMask & RBBIM_TEXT) && (lprbbi->lpText)) {
 	INT len = lstrlenW (lprbbi->lpText);
 	if (len > 0) {
-	    lpBand->lpText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	    lpBand->lpText = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
 	    strcpyW (lpBand->lpText, lprbbi->lpText);
 	}
     }
@@ -3339,7 +3339,7 @@
 
     /* allocate new space and copy rest of bands into it */
     infoPtr->bands =
-	(REBAR_BAND *)COMCTL32_Alloc ((infoPtr->uNumBands)*sizeof(REBAR_BAND));
+	(REBAR_BAND *)Alloc ((infoPtr->uNumBands)*sizeof(REBAR_BAND));
 
     /* pre insert copy */
     if (uTo > 0) {
@@ -3356,7 +3356,7 @@
 		(infoPtr->uNumBands - uTo - 1) * sizeof(REBAR_BAND));
     }
 
-    COMCTL32_Free (oldBands);
+    Free (oldBands);
 
     TRACE("moved band %d to index %d\n", uFrom, uTo);
     REBAR_DumpBand (infoPtr);
@@ -3397,12 +3397,12 @@
     REBAR_CommonSetupBand (infoPtr->hwndSelf, lprbbi, lpBand);
     if (lprbbi->fMask & RBBIM_TEXT) {
 	if (lpBand->lpText) {
-	    COMCTL32_Free (lpBand->lpText);
+	    Free (lpBand->lpText);
 	    lpBand->lpText = NULL;
 	}
 	if (lprbbi->lpText) {
             INT len = MultiByteToWideChar( CP_ACP, 0, lprbbi->lpText, -1, NULL, 0 );
-            lpBand->lpText = (LPWSTR)COMCTL32_Alloc (len*sizeof(WCHAR));
+            lpBand->lpText = (LPWSTR)Alloc (len*sizeof(WCHAR));
             MultiByteToWideChar( CP_ACP, 0, lprbbi->lpText, -1, lpBand->lpText, len );
 	}
     }
@@ -3442,12 +3442,12 @@
     REBAR_CommonSetupBand (infoPtr->hwndSelf, (LPREBARBANDINFOA)lprbbi, lpBand);
     if (lprbbi->fMask & RBBIM_TEXT) {
 	if (lpBand->lpText) {
-	    COMCTL32_Free (lpBand->lpText);
+	    Free (lpBand->lpText);
 	    lpBand->lpText = NULL;
 	}
 	if (lprbbi->lpText) {
 	    INT len = lstrlenW (lprbbi->lpText);
-	    lpBand->lpText = (LPWSTR)COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	    lpBand->lpText = (LPWSTR)Alloc ((len + 1)*sizeof(WCHAR));
 	    strcpyW (lpBand->lpText, lprbbi->lpText);
 	}
     }
@@ -3678,7 +3678,7 @@
 
 	    /* delete text strings */
 	    if (lpBand->lpText) {
-		COMCTL32_Free (lpBand->lpText);
+		Free (lpBand->lpText);
 		lpBand->lpText = NULL;
 	    }
 	    /* destroy child window */
@@ -3686,7 +3686,7 @@
 	}
 
 	/* free band array */
-	COMCTL32_Free (infoPtr->bands);
+	Free (infoPtr->bands);
 	infoPtr->bands = NULL;
     }
 
@@ -3698,7 +3698,7 @@
     SetWindowLongA (infoPtr->hwndSelf, 0, 0);
 
     /* free rebar info data */
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     TRACE("destroyed!\n");
     return 0;
 }
@@ -3861,7 +3861,7 @@
     }
 
     /* allocate memory for info structure */
-    infoPtr = (REBAR_INFO *)COMCTL32_Alloc (sizeof(REBAR_INFO));
+    infoPtr = (REBAR_INFO *)Alloc (sizeof(REBAR_INFO));
     SetWindowLongA (hwnd, 0, (DWORD)infoPtr);
 
     /* initialize info structure - initial values are 0 */
Index: dlls/comctl32/status.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/status.c,v
retrieving revision 1.61
diff -u -r1.61 status.c
--- dlls/comctl32/status.c	17 Sep 2003 20:15:21 -0000	1.61
+++ dlls/comctl32/status.c	22 Sep 2003 19:37:23 -0000
@@ -589,16 +589,16 @@
     if (oldNumParts > infoPtr->numParts) {
 	for (i = infoPtr->numParts ; i < oldNumParts; i++) {
 	    if (infoPtr->parts[i].text && !(infoPtr->parts[i].style & SBT_OWNERDRAW))
-		COMCTL32_Free (infoPtr->parts[i].text);
+		Free (infoPtr->parts[i].text);
 	}
     } else if (oldNumParts < infoPtr->numParts) {
-	tmp = COMCTL32_Alloc (sizeof(STATUSWINDOWPART) * infoPtr->numParts);
+	tmp = Alloc (sizeof(STATUSWINDOWPART) * infoPtr->numParts);
 	if (!tmp) return FALSE;
 	for (i = 0; i < oldNumParts; i++) {
 	    tmp[i] = infoPtr->parts[i];
 	}
 	if (infoPtr->parts)
-	    COMCTL32_Free (infoPtr->parts);
+	    Free (infoPtr->parts);
 	infoPtr->parts = tmp;
     }
     if (oldNumParts == infoPtr->numParts) {
@@ -684,11 +684,11 @@
 	if (text && !isW) {
 	    LPCSTR atxt = (LPCSTR)text;
             DWORD len = MultiByteToWideChar( CP_ACP, 0, atxt, -1, NULL, 0 );
-	    ntext = COMCTL32_Alloc( (len + 1)*sizeof(WCHAR) );
+	    ntext = Alloc( (len + 1)*sizeof(WCHAR) );
 	    if (!ntext) return FALSE;
             MultiByteToWideChar( CP_ACP, 0, atxt, -1, ntext, len );
 	} else if (text) {
-	    ntext = COMCTL32_Alloc( (strlenW(text) + 1)*sizeof(WCHAR) );
+	    ntext = Alloc( (strlenW(text) + 1)*sizeof(WCHAR) );
 	    if (!ntext) return FALSE;
 	    strcpyW (ntext, text);
 	} else ntext = 0;
@@ -696,7 +696,7 @@
 	/* check if text is unchanged -> no need to redraw */
 	if (text) {
 	    if (!changed && part->text && !lstrcmpW(ntext, part->text)) {
-		if (!isW) COMCTL32_Free(ntext);
+		if (!isW) Free(ntext);
 		return TRUE;
 	    }
 	} else {
@@ -705,7 +705,7 @@
 	}
 
 	if (part->text)
-	    COMCTL32_Free (part->text);
+	    Free (part->text);
 	part->text = ntext;
     }
     InvalidateRect(infoPtr->Self, &part->bound, FALSE);
@@ -793,11 +793,11 @@
     TRACE("\n");
     for (i = 0; i < infoPtr->numParts; i++) {
 	if (infoPtr->parts[i].text && !(infoPtr->parts[i].style & SBT_OWNERDRAW))
-	    COMCTL32_Free (infoPtr->parts[i].text);
+	    Free (infoPtr->parts[i].text);
     }
     if (infoPtr->part0.text && !(infoPtr->part0.style & SBT_OWNERDRAW))
-	COMCTL32_Free (infoPtr->part0.text);
-    COMCTL32_Free (infoPtr->parts);
+	Free (infoPtr->part0.text);
+    Free (infoPtr->parts);
 
     /* delete default font */
     if (infoPtr->hDefaultFont)
@@ -807,7 +807,7 @@
     if (infoPtr->hwndToolTip)
 	DestroyWindow (infoPtr->hwndToolTip);
 
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongW(infoPtr->Self, 0, 0);
     return 0;
 }
@@ -824,7 +824,7 @@
     HDC	hdc;
 
     TRACE("\n");
-    infoPtr = (STATUSWINDOWINFO*)COMCTL32_Alloc (sizeof(STATUSWINDOWINFO));
+    infoPtr = (STATUSWINDOWINFO*)Alloc (sizeof(STATUSWINDOWINFO));
     if (!infoPtr) goto create_fail;
     SetWindowLongW (hwnd, 0, (DWORD)infoPtr);
 
@@ -855,7 +855,7 @@
     infoPtr->part0.hIcon = 0;
 
     /* initialize first part */
-    infoPtr->parts = COMCTL32_Alloc (sizeof(STATUSWINDOWPART));
+    infoPtr->parts = Alloc (sizeof(STATUSWINDOWPART));
     if (!infoPtr->parts) goto create_fail;
     infoPtr->parts[0].bound = rect;
     infoPtr->parts[0].text = 0;
@@ -867,7 +867,7 @@
 	infoPtr->bUnicode = TRUE;
 	if (lpCreate->lpszName &&
 	    (len = strlenW ((LPCWSTR)lpCreate->lpszName))) {
-	    infoPtr->parts[0].text = COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	    infoPtr->parts[0].text = Alloc ((len + 1)*sizeof(WCHAR));
 	    if (!infoPtr->parts[0].text) goto create_fail;
 	    strcpyW (infoPtr->parts[0].text, (LPCWSTR)lpCreate->lpszName);
 	}
@@ -876,7 +876,7 @@
 	if (lpCreate->lpszName &&
 	    (len = strlen((LPCSTR)lpCreate->lpszName))) {
             DWORD lenW = MultiByteToWideChar( CP_ACP, 0, (LPCSTR)lpCreate->lpszName, -1, NULL, 0 );
-	    infoPtr->parts[0].text = COMCTL32_Alloc (lenW*sizeof(WCHAR));
+	    infoPtr->parts[0].text = Alloc (lenW*sizeof(WCHAR));
 	    if (!infoPtr->parts[0].text) goto create_fail;
             MultiByteToWideChar( CP_ACP, 0, (LPCSTR)lpCreate->lpszName, -1,
                                  infoPtr->parts[0].text, lenW );
@@ -1032,11 +1032,11 @@
     part = &infoPtr->parts[0];
     /* duplicate string */
     if (part->text)
-        COMCTL32_Free (part->text);
+        Free (part->text);
     part->text = 0;
     if (infoPtr->bUnicode) {
 	if (text && (len = strlenW((LPCWSTR)text))) {
-	    part->text = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
+	    part->text = Alloc ((len+1)*sizeof(WCHAR));
 	    if (!part->text) return FALSE;
 	    strcpyW (part->text, (LPCWSTR)text);
 	}
@@ -1044,7 +1044,7 @@
     else {
 	if (text && (len = lstrlenA(text))) {
             DWORD lenW = MultiByteToWideChar( CP_ACP, 0, text, -1, NULL, 0 );
-            part->text = COMCTL32_Alloc (lenW*sizeof(WCHAR));
+            part->text = Alloc (lenW*sizeof(WCHAR));
 	    if (!part->text) return FALSE;
             MultiByteToWideChar( CP_ACP, 0, text, -1, part->text, lenW );
 	}
Index: dlls/comctl32/tab.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/tab.c,v
retrieving revision 1.83
diff -u -r1.83 tab.c
--- dlls/comctl32/tab.c	10 Sep 2003 03:56:48 -0000	1.83
+++ dlls/comctl32/tab.c	22 Sep 2003 19:37:23 -0000
@@ -2425,7 +2425,7 @@
 
 
   if (infoPtr->uNumItem == 0) {
-    infoPtr->items = COMCTL32_Alloc (sizeof (TAB_ITEM));
+    infoPtr->items = Alloc (sizeof (TAB_ITEM));
     infoPtr->uNumItem++;
     infoPtr->iSelected = 0;
   }
@@ -2433,7 +2433,7 @@
     TAB_ITEM *oldItems = infoPtr->items;
 
     infoPtr->uNumItem++;
-    infoPtr->items = COMCTL32_Alloc (sizeof (TAB_ITEM) * infoPtr->uNumItem);
+    infoPtr->items = Alloc (sizeof (TAB_ITEM) * infoPtr->uNumItem);
 
     /* pre insert copy */
     if (iItem > 0) {
@@ -2451,7 +2451,7 @@
     if (iItem <= infoPtr->iSelected)
       infoPtr->iSelected++;
 
-    COMCTL32_Free (oldItems);
+    Free (oldItems);
   }
 
   infoPtr->items[iItem].mask = pti->mask;
@@ -2499,7 +2499,7 @@
   TAB_DumpItemExternalW(pti, iItem);
 
   if (infoPtr->uNumItem == 0) {
-    infoPtr->items = COMCTL32_Alloc (sizeof (TAB_ITEM));
+    infoPtr->items = Alloc (sizeof (TAB_ITEM));
     infoPtr->uNumItem++;
     infoPtr->iSelected = 0;
   }
@@ -2507,7 +2507,7 @@
     TAB_ITEM *oldItems = infoPtr->items;
 
     infoPtr->uNumItem++;
-    infoPtr->items = COMCTL32_Alloc (sizeof (TAB_ITEM) * infoPtr->uNumItem);
+    infoPtr->items = Alloc (sizeof (TAB_ITEM) * infoPtr->uNumItem);
 
     /* pre insert copy */
     if (iItem > 0) {
@@ -2525,7 +2525,7 @@
     if (iItem <= infoPtr->iSelected)
       infoPtr->iSelected++;
 
-    COMCTL32_Free (oldItems);
+    Free (oldItems);
   }
 
   infoPtr->items[iItem].mask = pti->mask;
@@ -2785,7 +2785,7 @@
     TAB_ITEM *oldItems = infoPtr->items;
 
     infoPtr->uNumItem--;
-    infoPtr->items = COMCTL32_Alloc(sizeof (TAB_ITEM) * infoPtr->uNumItem);
+    infoPtr->items = Alloc(sizeof (TAB_ITEM) * infoPtr->uNumItem);
 
     if (iItem > 0)
       memcpy(&infoPtr->items[0], &oldItems[0], iItem * sizeof(TAB_ITEM));
@@ -2794,7 +2794,7 @@
       memcpy(&infoPtr->items[iItem], &oldItems[iItem + 1],
               (infoPtr->uNumItem - iItem) * sizeof(TAB_ITEM));
 
-    COMCTL32_Free(oldItems);
+    Free(oldItems);
 
     /* Readjust the selected index */
     if ((iItem == infoPtr->iSelected) && (iItem > 0))
@@ -2821,7 +2821,7 @@
 {
    TAB_INFO *infoPtr = TAB_GetInfoPtr(hwnd);
 
-  COMCTL32_Free (infoPtr->items);
+  Free (infoPtr->items);
   infoPtr->uNumItem = 0;
   infoPtr->iSelected = -1;
   if (infoPtr->iHotTracked >= 0)
@@ -2947,7 +2947,7 @@
   HFONT hOldFont;
   DWORD dwStyle;
 
-  infoPtr = (TAB_INFO *)COMCTL32_Alloc (sizeof(TAB_INFO));
+  infoPtr = (TAB_INFO *)Alloc (sizeof(TAB_INFO));
 
   SetWindowLongA(hwnd, 0, (DWORD)infoPtr);
 
@@ -3042,9 +3042,9 @@
   if (infoPtr->items) {
     for (iItem = 0; iItem < infoPtr->uNumItem; iItem++) {
       if (infoPtr->items[iItem].pszText)
-	COMCTL32_Free (infoPtr->items[iItem].pszText);
+	Free (infoPtr->items[iItem].pszText);
     }
-    COMCTL32_Free (infoPtr->items);
+    Free (infoPtr->items);
   }
 
   if (infoPtr->hwndToolTip)
@@ -3056,7 +3056,7 @@
   if (infoPtr->iHotTracked >= 0)
     KillTimer(hwnd, TAB_HOTTRACK_TIMER);
 
-  COMCTL32_Free (infoPtr);
+  Free (infoPtr);
   SetWindowLongA(hwnd, 0, 0);
   return 0;
 }
Index: dlls/comctl32/toolbar.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/toolbar.c,v
retrieving revision 1.139
diff -u -r1.139 toolbar.c
--- dlls/comctl32/toolbar.c	17 Sep 2003 20:15:21 -0000	1.139
+++ dlls/comctl32/toolbar.c	22 Sep 2003 19:37:23 -0000
@@ -1716,7 +1716,7 @@
 		/* add items to 'toolbar buttons' list and check if removable */
 		for (i = 0; i < custInfo->tbInfo->nNumButtons; i++)
                 {
-		    btnInfo = (PCUSTOMBUTTON)COMCTL32_Alloc(sizeof(CUSTOMBUTTON));
+		    btnInfo = (PCUSTOMBUTTON)Alloc(sizeof(CUSTOMBUTTON));
                     memset (&btnInfo->btn, 0, sizeof(TBBUTTON));
                     btnInfo->btn.fsStyle = TBSTYLE_SEP;
                     btnInfo->bVirtual = FALSE;
@@ -1730,7 +1730,7 @@
 		}
 
 		/* insert separator button into 'available buttons' list */
-		btnInfo = (PCUSTOMBUTTON)COMCTL32_Alloc(sizeof(CUSTOMBUTTON));
+		btnInfo = (PCUSTOMBUTTON)Alloc(sizeof(CUSTOMBUTTON));
 		memset (&btnInfo->btn, 0, sizeof(TBBUTTON));
 		btnInfo->btn.fsStyle = TBSTYLE_SEP;
 		btnInfo->bVirtual = FALSE;
@@ -1765,7 +1765,7 @@
 		    index = TOOLBAR_GetButtonIndex (custInfo->tbInfo, nmtb.tbButton.idCommand, FALSE);
 		    if (index == -1)
 		    {
-			btnInfo = (PCUSTOMBUTTON)COMCTL32_Alloc(sizeof(CUSTOMBUTTON));
+			btnInfo = (PCUSTOMBUTTON)Alloc(sizeof(CUSTOMBUTTON));
 			btnInfo->bVirtual = FALSE;
 			btnInfo->bRemovable = TRUE;
 
@@ -1797,7 +1797,7 @@
 		SendDlgItemMessageA (hwnd, IDC_AVAILBTN_LBOX, LB_SETCURSEL, 0, 0);
 
 		/* append 'virtual' separator button to the 'toolbar buttons' list */
-		btnInfo = (PCUSTOMBUTTON)COMCTL32_Alloc(sizeof(CUSTOMBUTTON));
+		btnInfo = (PCUSTOMBUTTON)Alloc(sizeof(CUSTOMBUTTON));
 		memset (&btnInfo->btn, 0, sizeof(TBBUTTON));
 		btnInfo->btn.fsStyle = TBSTYLE_SEP;
 		btnInfo->bVirtual = TRUE;
@@ -1975,7 +1975,7 @@
 				SendDlgItemMessageA (hwnd, IDC_AVAILBTN_LBOX, LB_SETITEMDATA, index, (LPARAM)btnInfo);
 			    }
 			    else
-				COMCTL32_Free (btnInfo);
+				Free (btnInfo);
 			}
 		    }
 		    break;
@@ -2010,7 +2010,7 @@
 				PCUSTOMBUTTON btnNew;
 
 				/* duplicate 'separator' button */
-				btnNew = (PCUSTOMBUTTON)COMCTL32_Alloc (sizeof(CUSTOMBUTTON));
+				btnNew = (PCUSTOMBUTTON)Alloc (sizeof(CUSTOMBUTTON));
 				memcpy (btnNew, btnInfo, sizeof(CUSTOMBUTTON));
 				btnInfo = btnNew;
 			    }
@@ -2041,7 +2041,7 @@
 		for (i = 0; i < count; i++)
 		{
 		    btnInfo = (PCUSTOMBUTTON)SendDlgItemMessageA (hwnd, IDC_TOOLBARBTN_LBOX, LB_GETITEMDATA, i, 0);
-		    COMCTL32_Free(btnInfo);
+		    Free(btnInfo);
 		    SendDlgItemMessageA (hwnd, IDC_TOOLBARBTN_LBOX, LB_SETITEMDATA, 0, 0);
 		}
 		SendDlgItemMessageA (hwnd, IDC_TOOLBARBTN_LBOX, LB_RESETCONTENT, 0, 0);
@@ -2052,7 +2052,7 @@
 		for (i = 0; i < count; i++)
 		{
 		    btnInfo = (PCUSTOMBUTTON)SendDlgItemMessageA (hwnd, IDC_AVAILBTN_LBOX, LB_GETITEMDATA, i, 0);
-		    COMCTL32_Free(btnInfo);
+		    Free(btnInfo);
 		    SendDlgItemMessageA (hwnd, IDC_AVAILBTN_LBOX, LB_SETITEMDATA, i, 0);
 		}
 		SendDlgItemMessageA (hwnd, IDC_AVAILBTN_LBOX, LB_RESETCONTENT, 0, 0);
@@ -2333,12 +2333,12 @@
 
     if (infoPtr->nNumBitmapInfos == 0)
     {
-        infoPtr->bitmaps = COMCTL32_Alloc(sizeof(TBITMAP_INFO));
+        infoPtr->bitmaps = Alloc(sizeof(TBITMAP_INFO));
     }
     else
     {
         TBITMAP_INFO *oldBitmaps = infoPtr->bitmaps;
-        infoPtr->bitmaps = COMCTL32_Alloc((infoPtr->nNumBitmapInfos + 1) * sizeof(TBITMAP_INFO));
+        infoPtr->bitmaps = Alloc((infoPtr->nNumBitmapInfos + 1) * sizeof(TBITMAP_INFO));
         memcpy(&infoPtr->bitmaps[0], &oldBitmaps[0], infoPtr->nNumBitmapInfos);
     }
 
@@ -2386,15 +2386,15 @@
 
     if (infoPtr->nNumButtons == 0) {
 	infoPtr->buttons =
-	    COMCTL32_Alloc (sizeof(TBUTTON_INFO) * nNewButtons);
+	    Alloc (sizeof(TBUTTON_INFO) * nNewButtons);
     }
     else {
 	TBUTTON_INFO *oldButtons = infoPtr->buttons;
 	infoPtr->buttons =
-	    COMCTL32_Alloc (sizeof(TBUTTON_INFO) * nNewButtons);
+	    Alloc (sizeof(TBUTTON_INFO) * nNewButtons);
 	memcpy (&infoPtr->buttons[0], &oldButtons[0],
 		nOldButtons * sizeof(TBUTTON_INFO));
-        COMCTL32_Free (oldButtons);
+        Free (oldButtons);
     }
 
     infoPtr->nNumButtons = nNewButtons;
@@ -2450,15 +2450,15 @@
 
     if (infoPtr->nNumButtons == 0) {
 	infoPtr->buttons =
-	    COMCTL32_Alloc (sizeof(TBUTTON_INFO) * nNewButtons);
+	    Alloc (sizeof(TBUTTON_INFO) * nNewButtons);
     }
     else {
 	TBUTTON_INFO *oldButtons = infoPtr->buttons;
 	infoPtr->buttons =
-	    COMCTL32_Alloc (sizeof(TBUTTON_INFO) * nNewButtons);
+	    Alloc (sizeof(TBUTTON_INFO) * nNewButtons);
 	memcpy (&infoPtr->buttons[0], &oldButtons[0],
 		nOldButtons * sizeof(TBUTTON_INFO));
-        COMCTL32_Free (oldButtons);
+        Free (oldButtons);
     }
 
     infoPtr->nNumButtons = nNewButtons;
@@ -2518,18 +2518,18 @@
 	nIndex = infoPtr->nNumStrings;
 	if (infoPtr->nNumStrings == 0) {
 	    infoPtr->strings =
-		COMCTL32_Alloc (sizeof(LPWSTR));
+		Alloc (sizeof(LPWSTR));
 	}
 	else {
 	    LPWSTR *oldStrings = infoPtr->strings;
 	    infoPtr->strings =
-		COMCTL32_Alloc (sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
+		Alloc (sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
 	    memcpy (&infoPtr->strings[0], &oldStrings[0],
 		    sizeof(LPWSTR) * infoPtr->nNumStrings);
-	    COMCTL32_Free (oldStrings);
+	    Free (oldStrings);
 	}
 
-        /*COMCTL32_Alloc zeros out the allocated memory*/
+        /*Alloc zeros out the allocated memory*/
         Str_SetPtrAtoW (&infoPtr->strings[infoPtr->nNumStrings], szString );
 	infoPtr->nNumStrings++;
     }
@@ -2548,15 +2548,15 @@
 
 	    if (infoPtr->nNumStrings == 0) {
 		infoPtr->strings =
-		    COMCTL32_Alloc (sizeof(LPWSTR));
+		    Alloc (sizeof(LPWSTR));
 	    }
 	    else {
 		LPWSTR *oldStrings = infoPtr->strings;
 		infoPtr->strings =
-		    COMCTL32_Alloc (sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
+		    Alloc (sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
 		memcpy (&infoPtr->strings[0], &oldStrings[0],
 			sizeof(LPWSTR) * infoPtr->nNumStrings);
-		COMCTL32_Free (oldStrings);
+		Free (oldStrings);
 	    }
 
             Str_SetPtrAtoW (&infoPtr->strings[infoPtr->nNumStrings], p );
@@ -2596,15 +2596,15 @@
                 PWSTR np;
 
                 if (infoPtr->nNumStrings == 0) {
-                    infoPtr->strings = COMCTL32_Alloc (sizeof(LPWSTR));
+                    infoPtr->strings = Alloc (sizeof(LPWSTR));
                 }
                 else
                 {
                     LPWSTR *oldStrings = infoPtr->strings;
-                    infoPtr->strings = COMCTL32_Alloc(sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
+                    infoPtr->strings = Alloc(sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
                     memcpy(&infoPtr->strings[0], &oldStrings[0],
                            sizeof(LPWSTR) * infoPtr->nNumStrings);
-                    COMCTL32_Free(oldStrings);
+                    Free(oldStrings);
                 }
 
                 np=strchrW (p, '|');
@@ -2617,7 +2617,7 @@
                 }
                 TRACE("len=%d %s\n", len, debugstr_w(p));
                 infoPtr->strings[infoPtr->nNumStrings] =
-                    COMCTL32_Alloc (sizeof(WCHAR)*(len+1));
+                    Alloc (sizeof(WCHAR)*(len+1));
                 lstrcpynW (infoPtr->strings[infoPtr->nNumStrings], p, len+1);
                 infoPtr->nNumStrings++;
 
@@ -2629,15 +2629,15 @@
             nIndex = infoPtr->nNumStrings;
             if (infoPtr->nNumStrings == 0) {
                 infoPtr->strings =
-                    COMCTL32_Alloc (sizeof(LPWSTR));
+                    Alloc (sizeof(LPWSTR));
             }
             else {
                 LPWSTR *oldStrings = infoPtr->strings;
                 infoPtr->strings =
-                    COMCTL32_Alloc (sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
+                    Alloc (sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
                 memcpy (&infoPtr->strings[0], &oldStrings[0],
                         sizeof(LPWSTR) * infoPtr->nNumStrings);
-                COMCTL32_Free (oldStrings);
+                Free (oldStrings);
             }
 
             Str_SetPtrW (&infoPtr->strings[infoPtr->nNumStrings], szString);
@@ -2658,15 +2658,15 @@
 	    TRACE("len=%d %s\n", len, debugstr_w(p));
 	    if (infoPtr->nNumStrings == 0) {
 		infoPtr->strings =
-		    COMCTL32_Alloc (sizeof(LPWSTR));
+		    Alloc (sizeof(LPWSTR));
 	    }
 	    else {
 		LPWSTR *oldStrings = infoPtr->strings;
 		infoPtr->strings =
-		    COMCTL32_Alloc (sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
+		    Alloc (sizeof(LPWSTR) * (infoPtr->nNumStrings + 1));
 		memcpy (&infoPtr->strings[0], &oldStrings[0],
 			sizeof(LPWSTR) * infoPtr->nNumStrings);
-		COMCTL32_Free (oldStrings);
+		Free (oldStrings);
 	    }
 
 	    Str_SetPtrW (&infoPtr->strings[infoPtr->nNumStrings], p);
@@ -2916,7 +2916,7 @@
 
     if (infoPtr->nNumButtons == 1) {
 	TRACE(" simple delete!\n");
-	COMCTL32_Free (infoPtr->buttons);
+	Free (infoPtr->buttons);
 	infoPtr->buttons = NULL;
 	infoPtr->nNumButtons = 0;
     }
@@ -2925,7 +2925,7 @@
         TRACE("complex delete! [nIndex=%d]\n", nIndex);
 
 	infoPtr->nNumButtons--;
-	infoPtr->buttons = COMCTL32_Alloc (sizeof (TBUTTON_INFO) * infoPtr->nNumButtons);
+	infoPtr->buttons = Alloc (sizeof (TBUTTON_INFO) * infoPtr->nNumButtons);
         if (nIndex > 0) {
             memcpy (&infoPtr->buttons[0], &oldButtons[0],
                     nIndex * sizeof(TBUTTON_INFO));
@@ -2936,7 +2936,7 @@
                     (infoPtr->nNumButtons - nIndex) * sizeof(TBUTTON_INFO));
         }
 
-	COMCTL32_Free (oldButtons);
+	Free (oldButtons);
     }
 
     TOOLBAR_CalcToolbar (hwnd);
@@ -3500,11 +3500,11 @@
         TRACE("string %s passed instead of index, adding string\n",
               debugstr_a((LPSTR)lpTbb->iString));
         len = strlen((LPSTR)lpTbb->iString) + 2;
-        ptr = COMCTL32_Alloc(len);
+        ptr = Alloc(len);
         strcpy(ptr, (LPSTR)lpTbb->iString);
         ptr[len - 1] = 0; /* ended by two '\0' */
         lpTbb->iString = TOOLBAR_AddStringA(hwnd, 0, (LPARAM)ptr);
-        COMCTL32_Free(ptr);
+        Free(ptr);
     }
 
     TRACE("inserting button index=%d\n", nIndex);
@@ -3515,7 +3515,7 @@
 
     oldButtons = infoPtr->buttons;
     infoPtr->nNumButtons++;
-    infoPtr->buttons = COMCTL32_Alloc (sizeof (TBUTTON_INFO) * infoPtr->nNumButtons);
+    infoPtr->buttons = Alloc (sizeof (TBUTTON_INFO) * infoPtr->nNumButtons);
     /* pre insert copy */
     if (nIndex > 0) {
 	memcpy (&infoPtr->buttons[0], &oldButtons[0],
@@ -3555,7 +3555,7 @@
 		(infoPtr->nNumButtons - nIndex - 1) * sizeof(TBUTTON_INFO));
     }
 
-    COMCTL32_Free (oldButtons);
+    Free (oldButtons);
 
     TOOLBAR_CalcToolbar (hwnd);
 
@@ -3600,11 +3600,11 @@
 	TRACE("string %s passed instead of index, adding string\n",
 	      debugstr_w((LPWSTR)lpTbb->iString));
 	len = strlenW((LPWSTR)lpTbb->iString) + 2;
-	ptr = COMCTL32_Alloc(len*sizeof(WCHAR));
+	ptr = Alloc(len*sizeof(WCHAR));
 	strcpyW(ptr, (LPWSTR)lpTbb->iString);
 	ptr[len - 1] = 0; /* ended by two '\0' */
 	lpTbb->iString = TOOLBAR_AddStringW(hwnd, 0, (LPARAM)ptr);
-	COMCTL32_Free(ptr);
+	Free(ptr);
     }
 
     TRACE("inserting button index=%d\n", nIndex);
@@ -3615,7 +3615,7 @@
 
     oldButtons = infoPtr->buttons;
     infoPtr->nNumButtons++;
-    infoPtr->buttons = COMCTL32_Alloc (sizeof (TBUTTON_INFO) * infoPtr->nNumButtons);
+    infoPtr->buttons = Alloc (sizeof (TBUTTON_INFO) * infoPtr->nNumButtons);
     /* pre insert copy */
     if (nIndex > 0) {
 	memcpy (&infoPtr->buttons[0], &oldButtons[0],
@@ -3655,7 +3655,7 @@
 		(infoPtr->nNumButtons - nIndex - 1) * sizeof(TBUTTON_INFO));
     }
 
-    COMCTL32_Free (oldButtons);
+    Free (oldButtons);
 
     TOOLBAR_CalcToolbar (hwnd);
 
@@ -4747,16 +4747,16 @@
 
     /* delete button data */
     if (infoPtr->buttons)
-	COMCTL32_Free (infoPtr->buttons);
+	Free (infoPtr->buttons);
 
     /* delete strings */
     if (infoPtr->strings) {
 	INT i;
 	for (i = 0; i < infoPtr->nNumStrings; i++)
 	    if (infoPtr->strings[i])
-		COMCTL32_Free (infoPtr->strings[i]);
+		Free (infoPtr->strings[i]);
 
-	COMCTL32_Free (infoPtr->strings);
+	Free (infoPtr->strings);
     }
 
     /* destroy internal image list */
@@ -4772,7 +4772,7 @@
 	DeleteObject (infoPtr->hDefaultFont);
 
     /* free toolbar info data */
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongA (hwnd, 0, 0);
 
     return 0;
@@ -5257,7 +5257,7 @@
     DWORD styleadd = 0;
 
     /* allocate memory for info structure */
-    infoPtr = (TOOLBAR_INFO *)COMCTL32_Alloc (sizeof(TOOLBAR_INFO));
+    infoPtr = (TOOLBAR_INFO *)Alloc (sizeof(TOOLBAR_INFO));
     SetWindowLongA (hwnd, 0, (DWORD)infoPtr);
 
     /* paranoid!! */
@@ -6039,15 +6039,15 @@
     {
         PIMLENTRY *pnies;
 
-	c = (PIMLENTRY) COMCTL32_Alloc(sizeof(IMLENTRY));
+	c = (PIMLENTRY) Alloc(sizeof(IMLENTRY));
 	c->id = id;
 
-	pnies = COMCTL32_Alloc((*cies + 1) * sizeof(PIMLENTRY));
+	pnies = Alloc((*cies + 1) * sizeof(PIMLENTRY));
 	memcpy(pnies, *pies, ((*cies) * sizeof(PIMLENTRY)));
 	pnies[*cies] = c;
 	(*cies)++;
 
-	COMCTL32_Free(*pies);
+	Free(*pies);
 	*pies = pnies;
     }
 
@@ -6063,9 +6063,9 @@
     int i;
 
     for (i = 0; i < *cies; i++)
-	COMCTL32_Free((*pies)[i]);
+	Free((*pies)[i]);
 
-    COMCTL32_Free(*pies);
+    Free(*pies);
 
     *cies = 0;
     *pies = NULL;
Index: dlls/comctl32/tooltips.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/tooltips.c,v
retrieving revision 1.59
diff -u -r1.59 tooltips.c
--- dlls/comctl32/tooltips.c	17 Sep 2003 20:15:21 -0000	1.59
+++ dlls/comctl32/tooltips.c	22 Sep 2003 19:37:23 -0000
@@ -216,7 +216,7 @@
 		    INT len = MultiByteToWideChar(CP_ACP, 0, ttnmdi.szText,
 						  80, NULL, 0);
 		    toolPtr->hinst = 0;
-		    toolPtr->lpszText =	COMCTL32_Alloc (len * sizeof(WCHAR));
+		    toolPtr->lpszText =	Alloc (len * sizeof(WCHAR));
 		    MultiByteToWideChar(CP_ACP, 0, ttnmdi.szText, 80,
 					toolPtr->lpszText, len);
 		}
@@ -232,7 +232,7 @@
 		    INT len = MultiByteToWideChar(CP_ACP, 0, ttnmdi.lpszText,
 						  -1, NULL, 0);
 		    toolPtr->hinst = 0;
-		    toolPtr->lpszText =	COMCTL32_Alloc (len * sizeof(WCHAR));
+		    toolPtr->lpszText =	Alloc (len * sizeof(WCHAR));
 		    MultiByteToWideChar(CP_ACP, 0, ttnmdi.lpszText, -1,
 					toolPtr->lpszText, len);
 		}
@@ -679,16 +679,16 @@
 	   (lpToolInfo->uFlags & TTF_IDISHWND) ? " TTF_IDISHWND" : "");
 
     if (infoPtr->uNumTools == 0) {
-	infoPtr->tools = COMCTL32_Alloc (sizeof(TTTOOL_INFO));
+	infoPtr->tools = Alloc (sizeof(TTTOOL_INFO));
 	toolPtr = infoPtr->tools;
     }
     else {
 	TTTOOL_INFO *oldTools = infoPtr->tools;
 	infoPtr->tools =
-	    COMCTL32_Alloc (sizeof(TTTOOL_INFO) * (infoPtr->uNumTools + 1));
+	    Alloc (sizeof(TTTOOL_INFO) * (infoPtr->uNumTools + 1));
 	memcpy (infoPtr->tools, oldTools,
 		infoPtr->uNumTools * sizeof(TTTOOL_INFO));
-	COMCTL32_Free (oldTools);
+	Free (oldTools);
 	toolPtr = &infoPtr->tools[infoPtr->uNumTools];
     }
 
@@ -714,7 +714,7 @@
 	    INT len = MultiByteToWideChar(CP_ACP, 0, lpToolInfo->lpszText, -1,
 					  NULL, 0);
 	    TRACE("add text \"%s\"!\n", lpToolInfo->lpszText);
-	    toolPtr->lpszText =	COMCTL32_Alloc (len * sizeof(WCHAR));
+	    toolPtr->lpszText =	Alloc (len * sizeof(WCHAR));
 	    MultiByteToWideChar(CP_ACP, 0, lpToolInfo->lpszText, -1,
 				toolPtr->lpszText, len);
 	}
@@ -757,16 +757,16 @@
 	   (lpToolInfo->uFlags & TTF_IDISHWND) ? " TTF_IDISHWND" : "");
 
     if (infoPtr->uNumTools == 0) {
-	infoPtr->tools = COMCTL32_Alloc (sizeof(TTTOOL_INFO));
+	infoPtr->tools = Alloc (sizeof(TTTOOL_INFO));
 	toolPtr = infoPtr->tools;
     }
     else {
 	TTTOOL_INFO *oldTools = infoPtr->tools;
 	infoPtr->tools =
-	    COMCTL32_Alloc (sizeof(TTTOOL_INFO) * (infoPtr->uNumTools + 1));
+	    Alloc (sizeof(TTTOOL_INFO) * (infoPtr->uNumTools + 1));
 	memcpy (infoPtr->tools, oldTools,
 		infoPtr->uNumTools * sizeof(TTTOOL_INFO));
-	COMCTL32_Free (oldTools);
+	Free (oldTools);
 	toolPtr = &infoPtr->tools[infoPtr->uNumTools];
     }
 
@@ -792,7 +792,7 @@
 	    INT len = lstrlenW (lpToolInfo->lpszText);
 	    TRACE("add text %s!\n",
 		   debugstr_w(lpToolInfo->lpszText));
-	    toolPtr->lpszText =	COMCTL32_Alloc ((len + 1)*sizeof(WCHAR));
+	    toolPtr->lpszText =	Alloc ((len + 1)*sizeof(WCHAR));
 	    strcpyW (toolPtr->lpszText, lpToolInfo->lpszText);
 	}
     }
@@ -845,7 +845,7 @@
     if ((toolPtr->hinst) && (toolPtr->lpszText)) {
 	if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
 	     (HIWORD((INT)toolPtr->lpszText) != 0) )
-	    COMCTL32_Free (toolPtr->lpszText);
+	    Free (toolPtr->lpszText);
     }
 
     /* remove subclassing */
@@ -860,13 +860,13 @@
 
     /* delete tool from tool list */
     if (infoPtr->uNumTools == 1) {
-	COMCTL32_Free (infoPtr->tools);
+	Free (infoPtr->tools);
 	infoPtr->tools = NULL;
     }
     else {
 	TTTOOL_INFO *oldTools = infoPtr->tools;
 	infoPtr->tools =
-	    COMCTL32_Alloc (sizeof(TTTOOL_INFO) * (infoPtr->uNumTools - 1));
+	    Alloc (sizeof(TTTOOL_INFO) * (infoPtr->uNumTools - 1));
 
 	if (nTool > 0)
 	    memcpy (&infoPtr->tools[0], &oldTools[0],
@@ -876,7 +876,7 @@
 	    memcpy (&infoPtr->tools[nTool], &oldTools[nTool + 1],
 		    (infoPtr->uNumTools - nTool - 1) * sizeof(TTTOOL_INFO));
 
-	COMCTL32_Free (oldTools);
+	Free (oldTools);
     }
 
     /* destroying tool that mouse was on on last relayed mouse move */
@@ -920,7 +920,7 @@
     if ((toolPtr->hinst) && (toolPtr->lpszText)) {
 	if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
 	     (HIWORD((INT)toolPtr->lpszText) != 0) )
-	    COMCTL32_Free (toolPtr->lpszText);
+	    Free (toolPtr->lpszText);
     }
 
     /* remove subclassing */
@@ -935,13 +935,13 @@
 
     /* delete tool from tool list */
     if (infoPtr->uNumTools == 1) {
-	COMCTL32_Free (infoPtr->tools);
+	Free (infoPtr->tools);
 	infoPtr->tools = NULL;
     }
     else {
 	TTTOOL_INFO *oldTools = infoPtr->tools;
 	infoPtr->tools =
-	    COMCTL32_Alloc (sizeof(TTTOOL_INFO) * (infoPtr->uNumTools - 1));
+	    Alloc (sizeof(TTTOOL_INFO) * (infoPtr->uNumTools - 1));
 
 	if (nTool > 0)
 	    memcpy (&infoPtr->tools[0], &oldTools[0],
@@ -951,7 +951,7 @@
 	    memcpy (&infoPtr->tools[nTool], &oldTools[nTool + 1],
 		    (infoPtr->uNumTools - nTool - 1) * sizeof(TTTOOL_INFO));
 
-	COMCTL32_Free (oldTools);
+	Free (oldTools);
     }
 
     /* destroying tool that mouse was on on last relayed mouse move */
@@ -1642,13 +1642,13 @@
 	else {
 	    if ( (toolPtr->lpszText) &&
 		 (HIWORD((INT)toolPtr->lpszText) != 0) ) {
-		COMCTL32_Free (toolPtr->lpszText);
+		Free (toolPtr->lpszText);
 		toolPtr->lpszText = NULL;
 	    }
 	    if (lpToolInfo->lpszText) {
 		INT len = MultiByteToWideChar(CP_ACP, 0, lpToolInfo->lpszText,
 					      -1, NULL, 0);
-		toolPtr->lpszText = COMCTL32_Alloc (len * sizeof(WCHAR));
+		toolPtr->lpszText = Alloc (len * sizeof(WCHAR));
 		MultiByteToWideChar(CP_ACP, 0, lpToolInfo->lpszText, -1,
 				    toolPtr->lpszText, len);
 	    }
@@ -1699,12 +1699,12 @@
 	else {
 	    if ( (toolPtr->lpszText) &&
 		 (HIWORD((INT)toolPtr->lpszText) != 0) ) {
-		COMCTL32_Free (toolPtr->lpszText);
+		Free (toolPtr->lpszText);
 		toolPtr->lpszText = NULL;
 	    }
 	    if (lpToolInfo->lpszText) {
 		INT len = lstrlenW (lpToolInfo->lpszText);
-		toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
+		toolPtr->lpszText = Alloc ((len+1)*sizeof(WCHAR));
 		strcpyW (toolPtr->lpszText, lpToolInfo->lpszText);
 	    }
 	}
@@ -1814,13 +1814,13 @@
 	else {
 	    if ( (toolPtr->lpszText) &&
 		 (HIWORD((INT)toolPtr->lpszText) != 0) ) {
-		COMCTL32_Free (toolPtr->lpszText);
+		Free (toolPtr->lpszText);
 		toolPtr->lpszText = NULL;
 	    }
 	    if (lpToolInfo->lpszText) {
 		INT len = MultiByteToWideChar(CP_ACP, 0, lpToolInfo->lpszText,
 					      -1, NULL, 0);
-		toolPtr->lpszText = COMCTL32_Alloc (len * sizeof(WCHAR));
+		toolPtr->lpszText = Alloc (len * sizeof(WCHAR));
 		MultiByteToWideChar(CP_ACP, 0, lpToolInfo->lpszText, -1,
 				    toolPtr->lpszText, len);
 	    }
@@ -1871,12 +1871,12 @@
 	else {
 	    if ( (toolPtr->lpszText)  &&
 		 (HIWORD((INT)toolPtr->lpszText) != 0) ) {
-		COMCTL32_Free (toolPtr->lpszText);
+		Free (toolPtr->lpszText);
 		toolPtr->lpszText = NULL;
 	    }
 	    if (lpToolInfo->lpszText) {
 		INT len = lstrlenW (lpToolInfo->lpszText);
-		toolPtr->lpszText = COMCTL32_Alloc ((len+1)*sizeof(WCHAR));
+		toolPtr->lpszText = Alloc ((len+1)*sizeof(WCHAR));
 		strcpyW (toolPtr->lpszText, lpToolInfo->lpszText);
 	    }
 	}
@@ -1910,7 +1910,7 @@
     HWND hParent;
 
     /* allocate memory for info structure */
-    infoPtr = (TOOLTIPS_INFO *)COMCTL32_Alloc (sizeof(TOOLTIPS_INFO));
+    infoPtr = (TOOLTIPS_INFO *)Alloc (sizeof(TOOLTIPS_INFO));
     SetWindowLongA (hwnd, 0, (DWORD)infoPtr);
 
     /* initialize info structure */
@@ -1968,7 +1968,7 @@
 		if ( (toolPtr->lpszText != LPSTR_TEXTCALLBACKW) &&
 		     (HIWORD((INT)toolPtr->lpszText) != 0) )
 		{
-		    COMCTL32_Free (toolPtr->lpszText);
+		    Free (toolPtr->lpszText);
 		    toolPtr->lpszText = NULL;
 		}
 	    }
@@ -1983,14 +1983,14 @@
             }
         }
     }
-	COMCTL32_Free (infoPtr->tools);
+	Free (infoPtr->tools);
     }
 
     /* delete font */
     DeleteObject (infoPtr->hFont);
 
     /* free tool tips info data */
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongA(hwnd, 0, 0);
     return 0;
 }
Index: dlls/comctl32/trackbar.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/trackbar.c,v
retrieving revision 1.55
diff -u -r1.55 trackbar.c
--- dlls/comctl32/trackbar.c	17 Sep 2003 04:31:27 -0000	1.55
+++ dlls/comctl32/trackbar.c	22 Sep 2003 19:37:23 -0000
@@ -115,14 +115,14 @@
     	nrTics=(infoPtr->lRangeMax - infoPtr->lRangeMin)/infoPtr->uTicFreq;
     else {
         nrTics = 0;
-        COMCTL32_Free (infoPtr->tics);
+        Free (infoPtr->tics);
         infoPtr->tics = NULL;
         infoPtr->uNumTics = 0;
         return;
     }
 
     if (nrTics != infoPtr->uNumTics) {
-    	infoPtr->tics=COMCTL32_ReAlloc (infoPtr->tics,
+    	infoPtr->tics=ReAlloc (infoPtr->tics,
                                         (nrTics+1)*sizeof (DWORD));
 	if (!infoPtr->tics) {
 	    infoPtr->uNumTics = 0;
@@ -908,7 +908,7 @@
 TRACKBAR_ClearTics (TRACKBAR_INFO *infoPtr, BOOL fRedraw)
 {
     if (infoPtr->tics) {
-        COMCTL32_Free (infoPtr->tics);
+        Free (infoPtr->tics);
         infoPtr->tics = NULL;
         infoPtr->uNumTics = 0;
     }
@@ -1192,7 +1192,7 @@
     TRACE("lPos=%ld\n", lPos);
 
     infoPtr->uNumTics++;
-    infoPtr->tics=COMCTL32_ReAlloc( infoPtr->tics,
+    infoPtr->tics=ReAlloc( infoPtr->tics,
                                     (infoPtr->uNumTics)*sizeof (DWORD));
     if (!infoPtr->tics) {
 	infoPtr->uNumTics = 0;
@@ -1285,7 +1285,7 @@
     TRACKBAR_INFO *infoPtr;
     DWORD oldStyle, newStyle;
 
-    infoPtr = (TRACKBAR_INFO *)COMCTL32_Alloc (sizeof(TRACKBAR_INFO));
+    infoPtr = (TRACKBAR_INFO *)Alloc (sizeof(TRACKBAR_INFO));
     if (!infoPtr) return -1;
     SetWindowLongW (hwnd, 0, (DWORD)infoPtr);
 
@@ -1348,7 +1348,7 @@
     if (infoPtr->hwndToolTip)
     	DestroyWindow (infoPtr->hwndToolTip);
 
-    COMCTL32_Free (infoPtr);
+    Free (infoPtr);
     SetWindowLongW (infoPtr->hwndSelf, 0, 0);
     return 0;
 }
Index: dlls/comctl32/treeview.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.128
diff -u -r1.128 treeview.c
--- dlls/comctl32/treeview.c	17 Sep 2003 20:15:21 -0000	1.128
+++ dlls/comctl32/treeview.c	22 Sep 2003 19:37:23 -0000
@@ -486,7 +486,7 @@
     if (infoPtr->bNtfUnicode) {
         INT len = MultiByteToWideChar( CP_ACP, 0, item->pszText, -1, NULL, 0 );
         if (len > 1) {
-            tvItem->pszText = (LPSTR)COMCTL32_Alloc (len*sizeof(WCHAR));
+            tvItem->pszText = (LPSTR)Alloc (len*sizeof(WCHAR));
             MultiByteToWideChar( CP_ACP, 0, item->pszText, -1, (LPWSTR)tvItem->pszText, len*sizeof(WCHAR) );
 	}
     }
@@ -525,8 +525,8 @@
 			      (WPARAM)GetWindowLongA(hwnd, GWL_ID),
 			      (LPARAM)&nmhdr);
     if (infoPtr->bNtfUnicode) {
-	COMCTL32_Free(nmhdr.itemOld.pszText);
-	COMCTL32_Free(nmhdr.itemNew.pszText);
+	Free(nmhdr.itemOld.pszText);
+	Free(nmhdr.itemNew.pszText);
     }
     return ret;
 }
@@ -658,7 +658,7 @@
     if (infoPtr->bNtfUnicode) {
         INT len = MultiByteToWideChar( CP_ACP, 0, editItem->pszText, -1, NULL, 0 );
         if (len > 1) {
-            tvdi.item.pszText = allocated = (LPSTR)COMCTL32_Alloc (len*sizeof(WCHAR));
+            tvdi.item.pszText = allocated = (LPSTR)Alloc (len*sizeof(WCHAR));
             MultiByteToWideChar( CP_ACP, 0, editItem->pszText, -1, (LPWSTR)tvdi.item.pszText, len*sizeof(WCHAR) );
 	    tvdi.item.cchTextMax = len*sizeof(WCHAR);
 	}
@@ -676,7 +676,7 @@
 					 tvdi.hdr.idFrom,
 					(LPARAM)&tvdi);
     if (allocated)
-	COMCTL32_Free(allocated);
+	Free(allocated);
     return ret;
 }
 
@@ -725,7 +725,7 @@
 					   (LPWSTR)callback.item.pszText, -1,
                                            NULL, 0, NULL, NULL );
 	    buflen = max((len+1)*sizeof(WCHAR), TEXT_CALLBACK_SIZE);
-	    newText = (LPWSTR)COMCTL32_ReAlloc(wineItem->pszText, buflen);
+	    newText = (LPWSTR)ReAlloc(wineItem->pszText, buflen);
 
 	    TRACE("returned wstr %s, len=%d, buflen=%d\n",
 		  debugstr_w((LPWSTR)callback.item.pszText), len, buflen);
@@ -744,7 +744,7 @@
 	else {
 	    int len = max(lstrlenA(callback.item.pszText) + 1,
 			  TEXT_CALLBACK_SIZE);
-	    LPSTR newText = COMCTL32_ReAlloc(wineItem->pszText, len);
+	    LPSTR newText = ReAlloc(wineItem->pszText, len);
 
 	    TRACE("returned str %s, len=%d\n",
 		  debugstr_a(callback.item.pszText), len);
@@ -768,7 +768,7 @@
 					   (LPWSTR)callback.item.pszText, -1,
                                            NULL, 0, NULL, NULL );
 	    buflen = max((len+1)*sizeof(WCHAR), TEXT_CALLBACK_SIZE);
-	    newText = (LPWSTR)COMCTL32_Alloc(buflen);
+	    newText = (LPWSTR)Alloc(buflen);
 
 	    TRACE("same buffer wstr %s, len=%d, buflen=%d\n",
 		  debugstr_w((LPWSTR)callback.item.pszText), len, buflen);
@@ -782,7 +782,7 @@
 				     wineItem->pszText, buflen, NULL, NULL );
 		wineItem->cchTextMax = buflen;
 		if (oldText)
-		    COMCTL32_Free(oldText);
+		    Free(oldText);
 	    }
 	}
     }
@@ -969,14 +969,14 @@
 static TREEVIEW_ITEM *
 TREEVIEW_AllocateItem(TREEVIEW_INFO *infoPtr)
 {
-    TREEVIEW_ITEM *newItem = COMCTL32_Alloc(sizeof(TREEVIEW_ITEM));
+    TREEVIEW_ITEM *newItem = Alloc(sizeof(TREEVIEW_ITEM));
 
     if (!newItem)
 	return NULL;
 
     if (DPA_InsertPtr(infoPtr->items, INT_MAX, newItem) == -1)
     {
-	COMCTL32_Free(newItem);
+	Free(newItem);
 	return NULL;
     }
 
@@ -989,7 +989,7 @@
 TREEVIEW_FreeItem(TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *item)
 {
     DPA_DeletePtr(infoPtr->items, DPA_GetPtrIndex(infoPtr->items, item));
-    COMCTL32_Free(item);
+    Free(item);
     if (infoPtr->selectedItem == item)
         infoPtr->selectedItem = NULL;
     if (infoPtr->hotItem == item)
@@ -1087,7 +1087,7 @@
 	if (tvItem->pszText != LPSTR_TEXTCALLBACKA)
 	{
 	    int len = lstrlenA(tvItem->pszText) + 1;
-	    LPSTR newText = COMCTL32_ReAlloc(wineItem->pszText, len);
+	    LPSTR newText = ReAlloc(wineItem->pszText, len);
 
 	    if (newText == NULL) return FALSE;
 
@@ -1103,7 +1103,7 @@
 	{
 	    callbackSet |= TVIF_TEXT;
 
-	    wineItem->pszText = COMCTL32_ReAlloc(wineItem->pszText,
+	    wineItem->pszText = ReAlloc(wineItem->pszText,
 						 TEXT_CALLBACK_SIZE);
 	    wineItem->cchTextMax = TEXT_CALLBACK_SIZE;
 	    TRACE("setting callback, item %p\n",
@@ -1394,7 +1394,7 @@
 	{
             int len = WideCharToMultiByte( CP_ACP, 0, tvisW->DUMMYUNIONNAME.item.pszText, -1,
                                            NULL, 0, NULL, NULL );
-	    tvisA.DUMMYUNIONNAME.item.pszText = COMCTL32_Alloc(len);
+	    tvisA.DUMMYUNIONNAME.item.pszText = Alloc(len);
             WideCharToMultiByte( CP_ACP, 0, tvisW->DUMMYUNIONNAME.item.pszText, -1,
                                  tvisA.DUMMYUNIONNAME.item.pszText, len, NULL, NULL );
 	}
@@ -1415,7 +1415,7 @@
 
     if (tvisA.DUMMYUNIONNAME.item.pszText != LPSTR_TEXTCALLBACKA)
     {
-	COMCTL32_Free(tvisA.DUMMYUNIONNAME.item.pszText);
+	Free(tvisA.DUMMYUNIONNAME.item.pszText);
     }
 
     return lRes;
@@ -1487,7 +1487,7 @@
     infoPtr->uNumItems--;
 
     if (wineItem->pszText != LPSTR_TEXTCALLBACKA)
-	COMCTL32_Free(wineItem->pszText);
+	Free(wineItem->pszText);
 
     TREEVIEW_FreeItem(infoPtr, wineItem);
 }
@@ -3714,7 +3714,7 @@
     {
 	if (strcmp(tmpText, editedItem->pszText) != 0)
 	{
-	    if (NULL == COMCTL32_ReAlloc(editedItem->pszText, iLength + 1))
+	    if (NULL == ReAlloc(editedItem->pszText, iLength + 1))
 	    {
 		ERR("OutOfMemory, cannot allocate space for label\n");
 		DestroyWindow(infoPtr->hwndEdit);
@@ -4737,7 +4737,7 @@
 
     TRACE("wnd %p, style %lx\n", hwnd, GetWindowLongA(hwnd, GWL_STYLE));
 
-    infoPtr = (TREEVIEW_INFO *)COMCTL32_Alloc(sizeof(TREEVIEW_INFO));
+    infoPtr = (TREEVIEW_INFO *)Alloc(sizeof(TREEVIEW_INFO));
 
     if (infoPtr == NULL)
     {
@@ -4890,7 +4890,7 @@
     SetWindowLongA(infoPtr->hwnd, 0, (LONG)NULL);
 
     DeleteObject(infoPtr->hBoldFont);
-    COMCTL32_Free(infoPtr);
+    Free(infoPtr);
 
     return 0;
 }
Index: dlls/comctl32/updown.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/updown.c,v
retrieving revision 1.54
diff -u -r1.54 updown.c
--- dlls/comctl32/updown.c	17 Sep 2003 20:15:21 -0000	1.54
+++ dlls/comctl32/updown.c	22 Sep 2003 19:37:23 -0000
@@ -715,7 +715,7 @@
     {
         case WM_CREATE:
             SetWindowLongW (hwnd, GWL_STYLE, dwStyle & ~WS_BORDER);
-            infoPtr = (UPDOWN_INFO*)COMCTL32_Alloc (sizeof(UPDOWN_INFO));
+            infoPtr = (UPDOWN_INFO*)Alloc (sizeof(UPDOWN_INFO));
 	    SetWindowLongW (hwnd, 0, (DWORD)infoPtr);
 
 	    /* initialize the info struct */
@@ -738,11 +738,11 @@
 	    break;
 
 	case WM_DESTROY:
-	    if(infoPtr->AccelVect) COMCTL32_Free (infoPtr->AccelVect);
+	    if(infoPtr->AccelVect) Free (infoPtr->AccelVect);
 
 	    if(infoPtr->Buddy) RemovePropA(infoPtr->Buddy, BUDDY_UPDOWN_HWND);
 
-	    COMCTL32_Free (infoPtr);
+	    Free (infoPtr);
 	    SetWindowLongW (hwnd, 0, 0);
 	    TRACE("UpDown Ctrl destruction, hwnd=%p\n", hwnd);
 	    break;
@@ -834,12 +834,12 @@
 	case UDM_SETACCEL:
 	    TRACE("UpDown Ctrl new accel info, hwnd=%p\n", hwnd);
 	    if(infoPtr->AccelVect) {
-		COMCTL32_Free (infoPtr->AccelVect);
+		Free (infoPtr->AccelVect);
 		infoPtr->AccelCount = 0;
 		infoPtr->AccelVect  = 0;
       	    }
 	    if(wParam==0) return TRUE;
-	    infoPtr->AccelVect = COMCTL32_Alloc (wParam*sizeof(UDACCEL));
+	    infoPtr->AccelVect = Alloc (wParam*sizeof(UDACCEL));
 	    if(infoPtr->AccelVect == 0) return FALSE;
 	    memcpy(infoPtr->AccelVect, (void*)lParam, wParam*sizeof(UDACCEL));
     	    return TRUE;

-- 
Dimi.



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux