Commit e904bf3b authored by Alexandre Julliard's avatar Alexandre Julliard

16-bit resource size must be scaled by alignment.

parent 7a6cf75f
......@@ -767,7 +767,7 @@ static void write_ne_segment(FILE *fp, resource_t *top)
alignment_pwr);
/* Length */
fprintf(fp, "\t.short\t%d\n",
rcp->rscarray[j]->binres->size - rcp->rscarray[j]->binres->dataidx);
(rcp->rscarray[j]->binres->size - rcp->rscarray[j]->binres->dataidx + alignment - 1) >> alignment_pwr);
/* Flags */
fprintf(fp, "\t.short\t0x%04x\n", (WORD)rcp->rscarray[j]->memopt);
/* Id */
......
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