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
09fed756
Commit
09fed756
authored
May 24, 2004
by
Eric Pouech
Committed by
Alexandre Julliard
May 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes to module browsing.
parent
60287d0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
toolhelp.c
dlls/kernel/toolhelp.c
+8
-5
No files found.
dlls/kernel/toolhelp.c
View file @
09fed756
...
...
@@ -379,17 +379,20 @@ static BOOL TOOLHELP_Module32Next( HANDLE handle, LPMODULEENTRY32 lpme, BOOL fir
wine_server_set_reply
(
req
,
exe
,
sizeof
(
exe
)
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
{
lpme
->
th32ModuleID
=
0
;
/* toolhelp internal id, never used */
const
char
*
ptr
;
lpme
->
th32ModuleID
=
1
;
/* toolhelp internal id, never used */
lpme
->
th32ProcessID
=
reply
->
pid
;
lpme
->
GlblcntUsage
=
0
;
/* FIXME */
lpme
->
ProccntUsage
=
0
;
/* FIXME */
lpme
->
GlblcntUsage
=
0
xFFFF
;
/* FIXME */
lpme
->
ProccntUsage
=
0
xFFFF
;
/* FIXME */
lpme
->
modBaseAddr
=
reply
->
base
;
lpme
->
modBaseSize
=
reply
->
size
;
lpme
->
hModule
=
reply
->
base
;
lpme
->
szModule
[
0
]
=
0
;
/* FIXME */
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
exe
,
wine_server_reply_size
(
reply
)
/
sizeof
(
WCHAR
),
lpme
->
szExePath
,
sizeof
(
lpme
->
szExePath
),
NULL
,
NULL
);
lpme
->
szExePath
,
sizeof
(
lpme
->
szExePath
)
-
1
,
NULL
,
NULL
);
lpme
->
szExePath
[
len
]
=
0
;
if
((
ptr
=
strrchr
(
lpme
->
szExePath
,
'\\'
)))
ptr
++
;
else
ptr
=
lpme
->
szExePath
;
lstrcpynA
(
lpme
->
szModule
,
ptr
,
sizeof
(
lpme
->
szModule
)
);
}
}
SERVER_END_REQ
;
...
...
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