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
1690cf18
Commit
1690cf18
authored
Feb 21, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Moved the internals for registered callback to Unicode.
parent
180127dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
dbghelp.c
dlls/dbghelp/dbghelp.c
+12
-12
module.c
dlls/dbghelp/module.c
+12
-12
No files found.
dlls/dbghelp/dbghelp.c
View file @
1690cf18
...
...
@@ -500,10 +500,10 @@ BOOL pcs_callback(const struct process* pcs, ULONG action, void* data)
TRACE
(
"%p %u %p
\n
"
,
pcs
,
action
,
data
);
if
(
!
pcs
->
reg_cb
)
return
FALSE
;
if
(
pcs
->
reg_is_unicode
)
if
(
!
pcs
->
reg_is_unicode
)
{
IMAGEHLP_DEFERRED_SYMBOL_LOAD64
*
idsl
;
IMAGEHLP_DEFERRED_SYMBOL_LOADW64
idslW
;
IMAGEHLP_DEFERRED_SYMBOL_LOAD64
idsl
;
IMAGEHLP_DEFERRED_SYMBOL_LOADW64
*
idslW
;
switch
(
action
)
{
...
...
@@ -516,15 +516,15 @@ BOOL pcs_callback(const struct process* pcs, ULONG action, void* data)
case
CBA_DEFERRED_SYMBOL_LOAD_FAILURE
:
case
CBA_DEFERRED_SYMBOL_LOAD_PARTIAL
:
case
CBA_DEFERRED_SYMBOL_LOAD_START
:
idsl
=
(
IMAGEHLP_DEFERRED_SYMBOL_LOAD
64
*
)(
DWORD
)
data
;
idsl
W
.
SizeOfStruct
=
sizeof
(
idslW
);
idsl
W
.
BaseOfImage
=
idsl
->
BaseOfImage
;
idsl
W
.
CheckSum
=
idsl
->
CheckSum
;
idsl
W
.
TimeDateStamp
=
idsl
->
TimeDateStamp
;
MultiByteToWideChar
(
CP_ACP
,
0
,
idsl
->
FileName
,
-
1
,
idsl
W
.
FileName
,
sizeof
(
idslW
.
FileName
)
/
sizeof
(
WCHAR
)
);
idsl
W
.
Reparse
=
idsl
->
Reparse
;
data
=
&
idsl
W
;
idsl
W
=
(
IMAGEHLP_DEFERRED_SYMBOL_LOADW
64
*
)(
DWORD
)
data
;
idsl
.
SizeOfStruct
=
sizeof
(
idsl
);
idsl
.
BaseOfImage
=
idslW
->
BaseOfImage
;
idsl
.
CheckSum
=
idslW
->
CheckSum
;
idsl
.
TimeDateStamp
=
idslW
->
TimeDateStamp
;
WideCharToMultiByte
(
CP_ACP
,
0
,
idslW
->
FileName
,
-
1
,
idsl
.
FileName
,
sizeof
(
idsl
.
FileName
),
NULL
,
NULL
);
idsl
.
Reparse
=
idslW
->
Reparse
;
data
=
&
idsl
;
break
;
case
CBA_DUPLICATE_SYMBOL
:
case
CBA_EVENT
:
...
...
dlls/dbghelp/module.c
View file @
1690cf18
...
...
@@ -275,7 +275,7 @@ struct module* module_get_containee(const struct process* pcs,
*/
BOOL
module_get_debug
(
struct
module_pair
*
pair
)
{
IMAGEHLP_DEFERRED_SYMBOL_LOAD
64
idsl
64
;
IMAGEHLP_DEFERRED_SYMBOL_LOAD
W64
idslW
64
;
if
(
!
pair
->
requested
)
return
FALSE
;
/* for a PE builtin, always get info from container */
...
...
@@ -293,20 +293,20 @@ BOOL module_get_debug(struct module_pair* pair)
ret
=
elf_load_debug_info
(
pair
->
effective
,
NULL
);
break
;
case
DMT_PE
:
idsl
64
.
SizeOfStruct
=
sizeof
(
idsl
64
);
idsl64
.
BaseOfImage
=
pair
->
effective
->
module
.
BaseOfImage
;
idsl64
.
CheckSum
=
pair
->
effective
->
module
.
CheckSum
;
idsl64
.
TimeDateStamp
=
pair
->
effective
->
module
.
TimeDateStamp
;
WideCharToMultiByte
(
CP_ACP
,
0
,
pair
->
effective
->
module
.
ImageName
,
-
1
,
idsl64
.
FileName
,
sizeof
(
idsl64
.
FileName
),
NULL
,
NULL
);
idsl64
.
Reparse
=
FALSE
;
idsl64
.
hFile
=
INVALID_HANDLE_VALUE
;
pcs_callback
(
pair
->
pcs
,
CBA_DEFERRED_SYMBOL_LOAD_START
,
&
idsl64
);
idsl
W64
.
SizeOfStruct
=
sizeof
(
idslW
64
);
idsl
W
64
.
BaseOfImage
=
pair
->
effective
->
module
.
BaseOfImage
;
idsl
W
64
.
CheckSum
=
pair
->
effective
->
module
.
CheckSum
;
idsl
W
64
.
TimeDateStamp
=
pair
->
effective
->
module
.
TimeDateStamp
;
memcpy
(
idslW64
.
FileName
,
pair
->
effective
->
module
.
ImageName
,
sizeof
(
idslW64
.
FileName
)
);
idsl
W
64
.
Reparse
=
FALSE
;
idsl
W
64
.
hFile
=
INVALID_HANDLE_VALUE
;
pcs_callback
(
pair
->
pcs
,
CBA_DEFERRED_SYMBOL_LOAD_START
,
&
idsl
W
64
);
ret
=
pe_load_debug_info
(
pair
->
pcs
,
pair
->
effective
);
pcs_callback
(
pair
->
pcs
,
ret
?
CBA_DEFERRED_SYMBOL_LOAD_COMPLETE
:
CBA_DEFERRED_SYMBOL_LOAD_FAILURE
,
&
idsl64
);
&
idsl
W
64
);
break
;
default:
ret
=
FALSE
;
...
...
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