16-bit resource size must be scaled by alignment.

This commit is contained in:
Alexandre Julliard 2000-10-25 20:31:51 +00:00
parent 7a6cf75f76
commit e904bf3b07
1 changed files with 1 additions and 1 deletions

View File

@ -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 */