Re: GDI: Don't crash when copying to an EMF from a NULL bitmap.
13 Feb
2006
13 Feb
'06
11:59 a.m.
Mike McCormack <mike(a)codeweavers.com> writes:
@@ -84,9 +84,14 @@ static BOOL EMFDRV_BitBlockTransfer( BITMAP BM; WORD nBPP; LPBITMAPINFOHEADER lpBmiH; - EMFDRV_PDEVICE* physDevSrc = (EMFDRV_PDEVICE*)devSrc; - HBITMAP hBitmap = GetCurrentObject(physDevSrc->hdc, OBJ_BITMAP); + EMFDRV_PDEVICE* physDevSrc; + HBITMAP hBitmap;
+ physDevSrc = (EMFDRV_PDEVICE*)devSrc; + if (!devSrc) + return TRUE;
You still need to generate the EMF record, you can't just ignore it and return TRUE. -- Alexandre Julliard julliard(a)winehq.org
7333
Age (days ago)
7333
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard