wrc: Avoid a crash if a file didn't contain any resources.

oldstable
Alexandre Julliard 2009-07-16 11:15:00 +02:00
parent 1eab4f2f3d
commit 5d56995696
1 changed files with 9 additions and 7 deletions

View File

@ -386,7 +386,8 @@ resource_file
$1 = rsc;
/* Final statements before were done */
head = get_resource_head($1);
if ((head = get_resource_head($1)) != NULL)
{
if (resource_top) /* append to existing resources */
{
resource_t *tail = resource_top;
@ -395,6 +396,7 @@ resource_file
head->prev = tail;
}
else resource_top = head;
}
sttres = NULL;
}
;