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
e879efcc
Commit
e879efcc
authored
Mar 07, 2007
by
Peter Oberndorfer
Committed by
Alexandre Julliard
Mar 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Do not write over const char * parameter.
Also pass the right string to SymEnumSymbols and check for _ in symbol name, instead of beginning of string.
parent
719a0285
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
symbol.c
programs/winedbg/symbol.c
+18
-14
No files found.
programs/winedbg/symbol.c
View file @
e879efcc
...
...
@@ -239,23 +239,27 @@ enum sym_get_lval symbol_get_lvalue(const char* name, const int lineno,
SymSetOptions
((
opt
=
SymGetOptions
())
|
0x40000000
);
SymEnumSymbols
(
dbg_curr_process
->
handle
,
0
,
buffer
,
sgv_cb
,
(
void
*
)
&
sgv
);
if
(
!
sgv
.
num
&&
(
name
[
0
]
!=
'_'
)
)
if
(
!
sgv
.
num
)
{
char
*
ptr
=
strchr
(
name
,
'!'
);
if
(
ptr
++
)
{
memmove
(
ptr
+
1
,
ptr
,
strlen
(
ptr
));
*
ptr
=
'_'
;
}
else
const
char
*
ptr
=
strchr
(
name
,
'!'
);
if
((
ptr
&&
ptr
[
1
]
!=
'_'
)
||
(
!
ptr
&&
*
name
!=
'_'
))
{
buffer
[
0
]
=
'*'
;
buffer
[
1
]
=
'!'
;
buffer
[
2
]
=
'_'
;
strcpy
(
&
buffer
[
3
],
name
);
if
(
ptr
)
{
int
offset
=
ptr
-
name
;
memcpy
(
buffer
,
name
,
offset
+
1
);
buffer
[
offset
+
1
]
=
'_'
;
strcpy
(
&
buffer
[
offset
+
2
],
ptr
+
1
);
}
else
{
buffer
[
0
]
=
'*'
;
buffer
[
1
]
=
'!'
;
buffer
[
2
]
=
'_'
;
strcpy
(
&
buffer
[
3
],
name
);
}
SymEnumSymbols
(
dbg_curr_process
->
handle
,
0
,
buffer
,
sgv_cb
,
(
void
*
)
&
sgv
);
}
SymEnumSymbols
(
dbg_curr_process
->
handle
,
0
,
buffer
,
sgv_cb
,
(
void
*
)
&
sgv
);
}
SymSetOptions
(
opt
);
...
...
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