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
fd886c72
Commit
fd886c72
authored
Mar 18, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Use Unicode APIs for process/thread enumeration.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0046d6ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
info.c
programs/winedbg/info.c
+8
-8
No files found.
programs/winedbg/info.c
View file @
fd886c72
...
...
@@ -565,7 +565,7 @@ void info_win32_processes(void)
}
}
static
BOOL
get_process_name
(
DWORD
pid
,
PROCESSENTRY32
*
entry
)
static
BOOL
get_process_name
(
DWORD
pid
,
PROCESSENTRY32
W
*
entry
)
{
BOOL
ret
=
FALSE
;
HANDLE
snap
=
CreateToolhelp32Snapshot
(
TH32CS_SNAPPROCESS
,
0
);
...
...
@@ -573,9 +573,9 @@ static BOOL get_process_name(DWORD pid, PROCESSENTRY32* entry)
if
(
snap
!=
INVALID_HANDLE_VALUE
)
{
entry
->
dwSize
=
sizeof
(
*
entry
);
if
(
Process32First
(
snap
,
entry
))
if
(
Process32First
W
(
snap
,
entry
))
while
(
!
(
ret
=
(
entry
->
th32ProcessID
==
pid
))
&&
Process32Next
(
snap
,
entry
));
Process32Next
W
(
snap
,
entry
));
CloseHandle
(
snap
);
}
return
ret
;
...
...
@@ -607,18 +607,18 @@ void info_win32_threads(void)
*/
if
(
entry
.
th32OwnerProcessID
!=
lastProcessId
)
{
PROCESSENTRY32
pcs_entry
;
const
char
*
exename
;
PROCESSENTRY32
W
pcs_entry
;
const
WCHAR
*
exename
;
p
=
dbg_get_process
(
entry
.
th32OwnerProcessID
);
if
(
p
)
exename
=
dbg_W2A
(
p
->
imageName
,
-
1
)
;
exename
=
p
->
imageName
;
else
if
(
get_process_name
(
entry
.
th32OwnerProcessID
,
&
pcs_entry
))
exename
=
pcs_entry
.
szExeFile
;
else
exename
=
""
;
exename
=
L
""
;
dbg_printf
(
"%08lx%s %s
\n
"
,
dbg_printf
(
"%08lx%s %
l
s
\n
"
,
entry
.
th32OwnerProcessID
,
p
?
" (D)"
:
""
,
exename
);
lastProcessId
=
entry
.
th32OwnerProcessID
;
}
...
...
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