Commit fbfa4a3a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wineps: Fix image bits access in PSDRV_WriteDIBPatternDict.

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