Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b1f20454
Commit
b1f20454
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 affinity dialog code.
parent
c05ea50a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
affinity.c
programs/taskmgr/affinity.c
+6
-3
No files found.
programs/taskmgr/affinity.c
View file @
b1f20454
...
@@ -321,11 +321,12 @@ AffinityDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
...
@@ -321,11 +321,12 @@ AffinityDialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
void
ProcessPage_OnSetAffinity
(
void
)
void
ProcessPage_OnSetAffinity
(
void
)
{
{
LV_ITEMW
lvitem
;
LV_ITEMW
lvitem
;
ULONG
Index
;
ULONG
Index
,
Count
;
DWORD
dwProcessId
;
DWORD
dwProcessId
;
WCHAR
wstrErrorText
[
256
];
WCHAR
wstrErrorText
[
256
];
for
(
Index
=
0
;
Index
<
(
ULONG
)
ListView_GetItemCount
(
hProcessPageListCtrl
);
Index
++
)
{
Count
=
SendMessageW
(
hProcessPageListCtrl
,
LVM_GETITEMCOUNT
,
0
,
0
);
for
(
Index
=
0
;
Index
<
Count
;
Index
++
)
{
memset
(
&
lvitem
,
0
,
sizeof
(
LV_ITEMW
));
memset
(
&
lvitem
,
0
,
sizeof
(
LV_ITEMW
));
lvitem
.
mask
=
LVIF_STATE
;
lvitem
.
mask
=
LVIF_STATE
;
lvitem
.
stateMask
=
LVIS_SELECTED
;
lvitem
.
stateMask
=
LVIS_SELECTED
;
...
@@ -334,8 +335,10 @@ void ProcessPage_OnSetAffinity(void)
...
@@ -334,8 +335,10 @@ void ProcessPage_OnSetAffinity(void)
if
(
lvitem
.
state
&
LVIS_SELECTED
)
if
(
lvitem
.
state
&
LVIS_SELECTED
)
break
;
break
;
}
}
Count
=
SendMessageW
(
hProcessPageListCtrl
,
LVM_GETSELECTEDCOUNT
,
0
,
0
);
dwProcessId
=
PerfDataGetProcessId
(
Index
);
dwProcessId
=
PerfDataGetProcessId
(
Index
);
if
((
ListView_GetSelectedCount
(
hProcessPageListCtrl
)
!=
1
)
||
(
dwProcessId
==
0
))
if
((
Count
!=
1
)
||
(
dwProcessId
==
0
))
return
;
return
;
hProcessAffinityHandle
=
OpenProcess
(
PROCESS_QUERY_INFORMATION
|
PROCESS_SET_INFORMATION
,
FALSE
,
dwProcessId
);
hProcessAffinityHandle
=
OpenProcess
(
PROCESS_QUERY_INFORMATION
|
PROCESS_SET_INFORMATION
,
FALSE
,
dwProcessId
);
if
(
!
hProcessAffinityHandle
)
{
if
(
!
hProcessAffinityHandle
)
{
...
...
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