Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
10abc15f
Commit
10abc15f
authored
May 17, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
May 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Remove all TCHAR macro usage in process termination code.
parent
c0c857cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
endproc.c
programs/taskmgr/endproc.c
+10
-8
No files found.
programs/taskmgr/endproc.c
View file @
10abc15f
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment