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
52faa565
Commit
52faa565
authored
Jan 23, 2000
by
Ulrich Weigand
Committed by
Alexandre Julliard
Jan 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: missing NULL pointer checks.
parent
c8c800c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
msc.c
debugger/msc.c
+4
-4
No files found.
debugger/msc.c
View file @
52faa565
...
...
@@ -2138,7 +2138,7 @@ DEBUG_SnarfCodeView( struct deferred_debug_info * deefer,
* it means that we also may have line number information
* for this function.
*/
for
(
i
=
0
;
linetab
[
i
].
linetab
!=
NULL
;
i
++
)
for
(
i
=
0
;
linetab
&&
linetab
[
i
].
linetab
!=
NULL
;
i
++
)
{
if
(
((
unsigned
int
)
deefer
->
load_addr
+
sectp
[
linetab
[
i
].
segno
-
1
].
VirtualAddress
...
...
@@ -2152,7 +2152,7 @@ DEBUG_SnarfCodeView( struct deferred_debug_info * deefer,
}
DEBUG_Normalize
(
curr_func
);
if
(
linetab
[
i
].
linetab
==
NULL
)
if
(
!
linetab
||
linetab
[
i
].
linetab
==
NULL
)
{
curr_func
=
DEBUG_AddSymbol
(
symname
,
&
new_addr
,
NULL
,
SYM_WIN32
|
SYM_FUNC
);
...
...
@@ -2203,7 +2203,7 @@ DEBUG_SnarfCodeView( struct deferred_debug_info * deefer,
* it means that we also may have line number information
* for this function.
*/
for
(
i
=
0
;
linetab
[
i
].
linetab
!=
NULL
;
i
++
)
for
(
i
=
0
;
linetab
&&
linetab
[
i
].
linetab
!=
NULL
;
i
++
)
{
if
(
((
unsigned
int
)
deefer
->
load_addr
+
sectp
[
linetab
[
i
].
segno
-
1
].
VirtualAddress
...
...
@@ -2217,7 +2217,7 @@ DEBUG_SnarfCodeView( struct deferred_debug_info * deefer,
}
DEBUG_Normalize
(
curr_func
);
if
(
linetab
[
i
].
linetab
==
NULL
)
if
(
!
linetab
||
linetab
[
i
].
linetab
==
NULL
)
{
curr_func
=
DEBUG_AddSymbol
(
symname
,
&
new_addr
,
NULL
,
SYM_WIN32
|
SYM_FUNC
);
...
...
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