mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
-fix a warning in charmap.c
-use LocalFree when memory was allocated by LocalAlloc svn path=/trunk/; revision=29430
This commit is contained in:
@@ -269,7 +269,7 @@ DlgProc(HWND hDlg,
|
||||
TCHAR ch;
|
||||
HWND hMap = GetDlgItem(hDlg, IDC_FONTMAP);
|
||||
|
||||
ch = SendMessage(hMap, FM_GETCHAR, 0, 0);
|
||||
ch = (TCHAR) SendMessage(hMap, FM_GETCHAR, 0, 0);
|
||||
|
||||
if (ch)
|
||||
{
|
||||
|
||||
@@ -31,9 +31,7 @@ AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
SetWindowText(hLicenseEditWnd,
|
||||
lpString);
|
||||
|
||||
HeapFree(GetProcessHeap(),
|
||||
0,
|
||||
lpString);
|
||||
LocalFree(lpString);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -312,9 +312,7 @@ RefreshServiceList(PMAIN_WND_INFO Info)
|
||||
lvItem.iItem,
|
||||
(LPARAM)&lvItem);
|
||||
|
||||
HeapFree(ProcessHeap,
|
||||
0,
|
||||
lpStartup);
|
||||
LocalFree(lpStartup);
|
||||
|
||||
/* set Log On As */
|
||||
lvItem.pszText = pServiceConfig->lpServiceStartName;
|
||||
|
||||
@@ -144,9 +144,7 @@ UpdateServiceCount(PMAIN_WND_INFO Info)
|
||||
0,
|
||||
(LPARAM)szNumServices);
|
||||
|
||||
HeapFree(ProcessHeap,
|
||||
0,
|
||||
lpNumServices);
|
||||
LocalFree(lpNumServices);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -224,7 +224,8 @@ InitImageList(UINT StartResource,
|
||||
{
|
||||
HBITMAP hBitmap;
|
||||
HIMAGELIST hImageList;
|
||||
INT i, Ret;
|
||||
UINT i;
|
||||
INT Ret;
|
||||
|
||||
/* Create the toolbar icon image list */
|
||||
hImageList = ImageList_Create(Width,
|
||||
|
||||
@@ -76,9 +76,7 @@ SetServiceStatusText(PSERVICEPROPSHEET dlgInfo,
|
||||
WM_SETTEXT,
|
||||
0,
|
||||
(LPARAM)lpStatus);
|
||||
HeapFree(ProcessHeap,
|
||||
0,
|
||||
lpStatus);
|
||||
LocalFree(lpStatus);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,9 +106,7 @@ SetStartupType(LPTSTR lpServiceName,
|
||||
CB_ADDSTRING,
|
||||
0,
|
||||
(LPARAM)lpBuf);
|
||||
HeapFree(ProcessHeap,
|
||||
0,
|
||||
lpBuf);
|
||||
LocalFree(lpBuf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user