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
46c12b29
Commit
46c12b29
authored
Aug 30, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Enums should be found by name (as UDTs are).
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5c8c999b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+1
-1
type.c
dlls/dbghelp/type.c
+9
-2
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
46c12b29
...
...
@@ -270,8 +270,8 @@ struct symt_basic
struct
symt_enum
{
struct
symt
symt
;
struct
hash_table_elt
hash_elt
;
struct
symt
*
base_type
;
const
char
*
name
;
struct
vector
vchildren
;
};
...
...
dlls/dbghelp/type.c
View file @
46c12b29
...
...
@@ -88,7 +88,7 @@ const char* symt_get_name(const struct symt* sym)
case
SymTagLabel
:
return
((
const
struct
symt_hierarchy_point
*
)
sym
)
->
hash_elt
.
name
;
case
SymTagThunk
:
return
((
const
struct
symt_thunk
*
)
sym
)
->
hash_elt
.
name
;
/* hierarchy tree */
case
SymTagEnum
:
return
((
const
struct
symt_enum
*
)
sym
)
->
name
;
case
SymTagEnum
:
return
((
const
struct
symt_enum
*
)
sym
)
->
hash_elt
.
name
;
case
SymTagTypedef
:
return
((
const
struct
symt_typedef
*
)
sym
)
->
hash_elt
.
name
;
case
SymTagUDT
:
return
((
const
struct
symt_udt
*
)
sym
)
->
hash_elt
.
name
;
case
SymTagCompiland
:
return
source_get
(((
const
struct
symt_compiland
*
)
sym
)
->
container
->
module
,
...
...
@@ -307,12 +307,19 @@ struct symt_enum* symt_new_enum(struct module* module, const char* typename,
{
struct
symt_enum
*
sym
;
TRACE_
(
dbghelp_symt
)(
"Adding enum %s:%s
\n
"
,
debugstr_w
(
module
->
module
.
ModuleName
),
typename
);
if
((
sym
=
pool_alloc
(
&
module
->
pool
,
sizeof
(
*
sym
))))
{
sym
->
symt
.
tag
=
SymTagEnum
;
sym
->
name
=
(
typename
)
?
pool_strdup
(
&
module
->
pool
,
typename
)
:
NULL
;
if
(
typename
)
{
sym
->
hash_elt
.
name
=
pool_strdup
(
&
module
->
pool
,
typename
);
hash_table_add
(
&
module
->
ht_types
,
&
sym
->
hash_elt
);
}
else
sym
->
hash_elt
.
name
=
NULL
;
sym
->
base_type
=
basetype
;
vector_init
(
&
sym
->
vchildren
,
sizeof
(
struct
symt
*
),
8
);
symt_add_type
(
module
,
&
sym
->
symt
);
}
return
sym
;
}
...
...
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