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
5d569956
Commit
5d569956
authored
Jul 16, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Avoid a crash if a file didn't contain any resources.
parent
1eab4f2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
parser.y
tools/wrc/parser.y
+9
-7
No files found.
tools/wrc/parser.y
View file @
5d569956
...
...
@@ -386,15 +386,17 @@ resource_file
$
1
=
rsc
;
/* Final statements before were done */
head
=
get_resource_head
(
$
1
);
if
(
resource_top
)
/* append to existing resources */
if
((
head
=
get_resource_head
(
$
1
))
!=
NULL
)
{
resource_t
*tail
=
resource_top;
while
(tail->next)
tail
=
tail->next;
tail->next
=
head;
head->prev
=
tail;
if
(resource_top)
/* append to existing resources */
{
resource_t
*tail
=
resource_top;
while
(tail->next)
tail
=
tail->next;
tail->next
=
head;
head->prev
=
tail;
}
else
resource_top
=
head
;
}
else
resource_top
=
head
;
sttres
=
NULL
;
}
;
...
...
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