fix build failures on solaris8 and VC

0.96
aCaB 16 years ago
parent 562dbf3e85
commit ac3cff4bb2
  1. 4
      libclamav/pe_icons.c
  2. 4
      win32/libclamav.vcproj

@ -1390,9 +1390,9 @@ static int parseicon(unsigned int *grp1, unsigned int *grp2, uint32_t rva, cli_c
memset(newdata, 0xaaccaabb, newsize * newsize * sizeof(*newdata));
cli_dbgmsg("Slow scaling to %ux%u (%f, %f)\n", newsize, newsize, scalex, scaley);
for(y = 0; y<newsize; y++) {
unsigned int oldy = round(y * scaley) * width;
unsigned int oldy = (unsigned int)((y * scaley) * width + 0.5f);
for(x = 0; x<newsize; x++)
newdata[y*newsize + x] = imagedata[oldy + (unsigned int)round(x * scalex)];
newdata[y*newsize + x] = imagedata[oldy + (unsigned int)(x * scalex + 0.5f)];
}
free(imagedata);
height = newsize;

@ -376,6 +376,10 @@
RelativePath="..\libclamav\pe.c"
>
</File>
<File
RelativePath="..\libclamav\pe_icons.c"
>
</File>
<File
RelativePath="..\libclamav\petite.c"
>

Loading…
Cancel
Save