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
da5623cb
Commit
da5623cb
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 debug handling code.
parent
10abc15f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
debug.c
programs/taskmgr/debug.c
+6
-5
No files found.
programs/taskmgr/debug.c
View file @
da5623cb
...
...
@@ -36,7 +36,7 @@
void
ProcessPage_OnDebug
(
void
)
{
LVITEMW
lvitem
;
ULONG
Index
;
ULONG
Index
,
Count
;
DWORD
dwProcessId
;
WCHAR
wstrErrorText
[
256
];
HKEY
hKey
;
...
...
@@ -62,7 +62,8 @@ void ProcessPage_OnDebug(void)
LoadStringW
(
hInst
,
IDS_DEBUG_UNABLE2DEBUG
,
wszUnable2Debug
,
sizeof
(
wszUnable2Debug
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_DEBUG_MESSAGE
,
wszWarnMsg
,
sizeof
(
wszWarnMsg
)
/
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
;
...
...
@@ -75,9 +76,9 @@ void ProcessPage_OnDebug(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
)
...
...
@@ -105,7 +106,7 @@ void ProcessPage_OnDebug(void)
RegCloseKey
(
hKey
);
hDebugEvent
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
hDebugEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
if
(
!
hDebugEvent
)
{
GetLastErrorText
(
wstrErrorText
,
sizeof
(
wstrErrorText
)
/
sizeof
(
WCHAR
));
...
...
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