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

This commit is contained in:
Alexandre Julliard 2009-09-26 13:30:42 +02:00
parent d69dd56495
commit 10b0d11e0d
1 changed files with 2 additions and 2 deletions

View File

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