mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 14:24:45 +00:00
taskmgr: Remove all TCHAR macro usage in process termination code.
This commit is contained in:
parent
c0c857cbc6
commit
10abc15faa
1 changed files with 10 additions and 8 deletions
|
@ -47,14 +47,15 @@ static void load_message_strings(void)
|
|||
void ProcessPage_OnEndProcess(void)
|
||||
{
|
||||
LVITEMW lvitem;
|
||||
ULONG Index;
|
||||
ULONG Index, Count;
|
||||
DWORD dwProcessId;
|
||||
HANDLE hProcess;
|
||||
WCHAR wstrErrorText[256];
|
||||
|
||||
load_message_strings();
|
||||
|
||||
for (Index=0; Index<(ULONG)ListView_GetItemCount(hProcessPageListCtrl); Index++)
|
||||
Count = SendMessageW(hProcessPageListCtrl, LVM_GETITEMCOUNT, 0, 0);
|
||||
for (Index=0; Index<Count; Index++)
|
||||
{
|
||||
lvitem.mask = LVIF_STATE;
|
||||
lvitem.stateMask = LVIS_SELECTED;
|
||||
|
@ -67,9 +68,9 @@ void ProcessPage_OnEndProcess(void)
|
|||
break;
|
||||
}
|
||||
|
||||
Count = SendMessageW(hProcessPageListCtrl, LVM_GETSELECTEDCOUNT, 0, 0);
|
||||
dwProcessId = PerfDataGetProcessId(Index);
|
||||
|
||||
if ((ListView_GetSelectedCount(hProcessPageListCtrl) != 1) || (dwProcessId == 0))
|
||||
if ((Count != 1) || (dwProcessId == 0))
|
||||
return;
|
||||
|
||||
if (MessageBoxW(hMainWnd, wszWarnMsg, wszWarnTitle, MB_YESNO|MB_ICONWARNING) != IDYES)
|
||||
|
@ -96,14 +97,15 @@ void ProcessPage_OnEndProcess(void)
|
|||
void ProcessPage_OnEndProcessTree(void)
|
||||
{
|
||||
LVITEMW lvitem;
|
||||
ULONG Index;
|
||||
ULONG Index, Count;
|
||||
DWORD dwProcessId;
|
||||
HANDLE hProcess;
|
||||
WCHAR wstrErrorText[256];
|
||||
|
||||
load_message_strings();
|
||||
|
||||
for (Index=0; Index<(ULONG)ListView_GetItemCount(hProcessPageListCtrl); Index++)
|
||||
Count = SendMessageW(hProcessPageListCtrl, LVM_GETITEMCOUNT, 0, 0);
|
||||
for (Index=0; Index<Count; Index++)
|
||||
{
|
||||
lvitem.mask = LVIF_STATE;
|
||||
lvitem.stateMask = LVIS_SELECTED;
|
||||
|
@ -116,9 +118,9 @@ void ProcessPage_OnEndProcessTree(void)
|
|||
break;
|
||||
}
|
||||
|
||||
Count = SendMessageW(hProcessPageListCtrl, LVM_GETSELECTEDCOUNT, 0, 0);
|
||||
dwProcessId = PerfDataGetProcessId(Index);
|
||||
|
||||
if ((ListView_GetSelectedCount(hProcessPageListCtrl) != 1) || (dwProcessId == 0))
|
||||
if ((Count != 1) || (dwProcessId == 0))
|
||||
return;
|
||||
|
||||
if (MessageBoxW(hMainWnd, wszWarnMsg, wszWarnTitle, MB_YESNO|MB_ICONWARNING) != IDYES)
|
||||
|
|
Loading…
Reference in a new issue