Author: janderwald
Date: Fri Oct 5 00:16:11 2007
New Revision: 29392
URL:
http://svn.reactos.org/svn/reactos?rev=29392&view=rev
Log:
- fix a bug and warning
Modified:
trunk/reactos/dll/cpl/appwiz/remove.c
Modified: trunk/reactos/dll/cpl/appwiz/remove.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/appwiz/remove.c?re…
==============================================================================
--- trunk/reactos/dll/cpl/appwiz/remove.c (original)
+++ trunk/reactos/dll/cpl/appwiz/remove.c Fri Oct 5 00:16:11 2007
@@ -310,7 +310,8 @@
HWND hList;
HWND hEdit;
TCHAR szText[1024], szItemText[1024];
- INT Index,i;
+ INT Index;
+ size_t i;
LV_ITEM listItem;
BOOL comp = TRUE;
@@ -328,7 +329,7 @@
SendMessage(hList, LVM_DELETEITEM, Index, 0);
ListView_GetItemText(hList, Index, 0, (LPTSTR)szItemText, 1024);
- for (i = 0; i < strlen((char*)szText); i++)
+ for (i = 0; i < _tcslen(szText); i++)
{
if (szText[i] != szItemText[i]) comp = FALSE;
}
@@ -347,8 +348,8 @@
INT_PTR CALLBACK
RemovePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
+ TCHAR Buf[256];
UNREFERENCED_PARAMETER(lParam);
- TCHAR Buf[256];
switch (uMsg)
{