Commit 859b876f authored by Steven Fuller's avatar Steven Fuller

Another small change to res.c

parent cdea31c5
......@@ -158,8 +158,10 @@ void *LoadAResource2(Word RezNum, LongWord Type)
} else {
/* DEBUG: we want a fresh copy... */
printf("DEBUG: Item %ld/%d already loaded!\n", Type, RezNum);
/*
free(c->buf);
c->buf = malloc(c->size);
*/
memcpy(c->buf, c->dat, c->size);
}
......@@ -187,8 +189,10 @@ void *FindResource(Word RezNum, LongWord Type)
} else {
/* DEBUG: we want a fresh copy... */
printf("DEBUG: Item %ld/%d already loaded!\n", Type, RezNum);
/*
free(c->buf);
c->buf = malloc(c->size);
*/
memcpy(c->buf, c->dat, c->size);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment