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
c0c857cb
Commit
c0c857cb
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 priority handling code.
parent
b1f20454
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
priority.c
programs/taskmgr/priority.c
+5
-4
No files found.
programs/taskmgr/priority.c
View file @
c0c857cb
...
...
@@ -36,7 +36,7 @@
static
void
DoSetPriority
(
DWORD
priority
)
{
LVITEMW
lvitem
;
ULONG
Index
;
ULONG
Index
,
Count
;
DWORD
dwProcessId
;
HANDLE
hProcess
;
WCHAR
wstrErrorText
[
256
];
...
...
@@ -49,7 +49,8 @@ static void DoSetPriority(DWORD priority)
LoadStringW
(
hInst
,
IDS_WARNING_TITLE
,
wszWarnTitle
,
sizeof
(
wszWarnTitle
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_PRIORITY_UNABLE2CHANGE
,
wszUnable2Change
,
sizeof
(
wszUnable2Change
)
/
sizeof
(
WCHAR
));
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
;
...
...
@@ -62,9 +63,9 @@ static void DoSetPriority(DWORD priority)
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