mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 19:14:03 +00:00
- fix a bug and warning
svn path=/trunk/; revision=29392
This commit is contained in:
parent
b16c028e4f
commit
327e65fe96
1 changed files with 4 additions and 3 deletions
|
@ -310,7 +310,8 @@ FindItems(HWND hwndDlg)
|
||||||
HWND hList;
|
HWND hList;
|
||||||
HWND hEdit;
|
HWND hEdit;
|
||||||
TCHAR szText[1024], szItemText[1024];
|
TCHAR szText[1024], szItemText[1024];
|
||||||
INT Index,i;
|
INT Index;
|
||||||
|
size_t i;
|
||||||
LV_ITEM listItem;
|
LV_ITEM listItem;
|
||||||
BOOL comp = TRUE;
|
BOOL comp = TRUE;
|
||||||
|
|
||||||
|
@ -328,7 +329,7 @@ FindItems(HWND hwndDlg)
|
||||||
SendMessage(hList, LVM_DELETEITEM, Index, 0);
|
SendMessage(hList, LVM_DELETEITEM, Index, 0);
|
||||||
ListView_GetItemText(hList, Index, 0, (LPTSTR)szItemText, 1024);
|
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;
|
if (szText[i] != szItemText[i]) comp = FALSE;
|
||||||
}
|
}
|
||||||
|
@ -347,8 +348,8 @@ FindItems(HWND hwndDlg)
|
||||||
INT_PTR CALLBACK
|
INT_PTR CALLBACK
|
||||||
RemovePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
RemovePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
TCHAR Buf[256];
|
||||||
UNREFERENCED_PARAMETER(lParam);
|
UNREFERENCED_PARAMETER(lParam);
|
||||||
TCHAR Buf[256];
|
|
||||||
|
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue