Commit 10b0d11e authored by Alexandre Julliard's avatar Alexandre Julliard

wineps.drv: BS_DIBPATTERN brushes use a 32-bit handle in 32-bit mode.

parent d69dd564
......@@ -233,7 +233,7 @@ BOOL PSDRV_Brush(PSDRV_PDEVICE *physDev, BOOL EO)
case BS_DIBPATTERN:
{
BITMAPINFO *bmi = GlobalLock16(logbrush.lbHatch);
BITMAPINFO *bmi = GlobalLock( (HGLOBAL)logbrush.lbHatch );
UINT usage = logbrush.lbColor;
TRACE("size %dx%dx%d\n", bmi->bmiHeader.biWidth,
bmi->bmiHeader.biHeight, bmi->bmiHeader.biBitCount);
......@@ -246,7 +246,7 @@ BOOL PSDRV_Brush(PSDRV_PDEVICE *physDev, BOOL EO)
FIXME("Trying to set a pattern brush on a level 1 printer\n");
ret = FALSE;
}
GlobalUnlock16(logbrush.lbHatch);
GlobalUnlock( (HGLOBAL)logbrush.lbHatch );
}
break;
......
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