wineps: Fix image bits access in PSDRV_WriteDIBPatternDict.

This commit is contained in:
Piotr Caban 2023-03-10 17:18:54 +01:00 committed by Alexandre Julliard
parent 5d68939dfd
commit fbfa4a3aed

View file

@ -979,7 +979,7 @@ BOOL PSDRV_WriteDIBPatternDict(PHYSDEV dev, const BITMAPINFO *bmi, BYTE *bits, U
for(y = h-1; y >= 0; y--) {
for(x = 0; x < w/8; x++) {
sprintf(ptr, "%02x", *(bits + x/8 + y *
(bmi->bmiHeader.biWidth + 31) / 32 * 4));
((bmi->bmiHeader.biWidth + 31) / 32) * 4));
ptr += 2;
}
}