9 Nov
2002
9 Nov
'02
4 a.m.
<steve.lustbader(a)philips.com> wrote:
According to my quick test on WinXP, StretchDIBits returns 0 if lpBits or lpBitsInfo is NULL. Wine currently produces an unhandled exception if lpBitsInfo is null.
ChangeLog: Prevent StretchDIBits from producing an unhandled exception if lpBitsInfo is null.
(See attached file: stretchdibits.diff)
--- objects/dib.c 23 Oct 2002 18:50:10 -0000 1.70 +++ objects/dib.c 8 Nov 2002 18:49:19 -0000 @@ -157,6 +157,9 @@ DC *dc = DC_GetDCUpdate( hdc ); if(!dc) return FALSE; + if (!bits || !info) + return 0;
You have to verify parameters before DC pointer and GDI lock are grabbed, otherwise we'll get a nice dead lock. -- Dmitry.
8439
Age (days ago)
8439
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov