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
b70f9680
Commit
b70f9680
authored
Apr 21, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Link directly to __unDName.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8c59a046
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
22 deletions
+5
-22
symbol.c
dlls/dbghelp/symbol.c
+5
-22
No files found.
dlls/dbghelp/symbol.c
View file @
b70f9680
...
...
@@ -1782,25 +1782,8 @@ BOOL WINAPI SymUnDName64(PIMAGEHLP_SYMBOL64 sym, PSTR UnDecName, DWORD UnDecName
UNDNAME_COMPLETE
)
!=
0
;
}
static
void
*
CDECL
und_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
}
static
void
CDECL
und_free
(
void
*
ptr
)
{
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
}
static
char
*
und_name
(
char
*
buffer
,
const
char
*
mangled
,
int
buflen
,
unsigned
short
flags
)
{
/* undocumented from msvcrt */
static
HANDLE
hMsvcrt
;
static
char
*
(
CDECL
*
p_undname
)(
char
*
,
const
char
*
,
int
,
void
*
(
CDECL
*
)(
size_t
),
void
(
CDECL
*
)(
void
*
),
unsigned
short
);
static
const
WCHAR
szMsvcrt
[]
=
{
'm'
,
's'
,
'v'
,
'c'
,
'r'
,
't'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
if
(
!
p_undname
)
{
if
(
!
hMsvcrt
)
hMsvcrt
=
LoadLibraryW
(
szMsvcrt
);
if
(
hMsvcrt
)
p_undname
=
(
void
*
)
GetProcAddress
(
hMsvcrt
,
"__unDName"
);
if
(
!
p_undname
)
return
NULL
;
}
return
p_undname
(
buffer
,
mangled
,
buflen
,
und_alloc
,
und_free
,
flags
);
}
extern
char
*
CDECL
__unDName
(
char
*
buffer
,
const
char
*
mangled
,
int
len
,
void
*
(
CDECL
*
pfn_alloc
)(
size_t
),
void
(
CDECL
*
pfn_free
)(
void
*
),
unsigned
short
flags
);
/***********************************************************************
* UnDecorateSymbolName (DBGHELP.@)
...
...
@@ -1813,7 +1796,7 @@ DWORD WINAPI UnDecorateSymbolName(const char *decorated_name, char *undecorated_
if
(
!
undecorated_name
||
!
undecorated_length
)
return
0
;
if
(
!
und_name
(
undecorated_name
,
decorated_name
,
undecorated_length
,
flags
))
if
(
!
__unDName
(
undecorated_name
,
decorated_name
,
undecorated_length
,
malloc
,
free
,
flags
))
return
0
;
return
strlen
(
undecorated_name
);
}
...
...
@@ -1837,12 +1820,12 @@ DWORD WINAPI UnDecorateSymbolNameW(const WCHAR *decorated_name, WCHAR *undecorat
if
((
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
{
WideCharToMultiByte
(
CP_ACP
,
0
,
decorated_name
,
-
1
,
buf
,
len
,
NULL
,
NULL
);
if
((
ptr
=
und_name
(
NULL
,
buf
,
0
,
flags
)))
if
((
ptr
=
__unDName
(
NULL
,
buf
,
0
,
malloc
,
free
,
flags
)))
{
MultiByteToWideChar
(
CP_ACP
,
0
,
ptr
,
-
1
,
undecorated_name
,
undecorated_length
);
undecorated_name
[
undecorated_length
-
1
]
=
0
;
ret
=
lstrlenW
(
undecorated_name
);
und_
free
(
ptr
);
free
(
ptr
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
}
...
...
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