[gdi32/dc] Fix possible NULL pointer dereference (Coverity)

Paul Vriens paul.vriens.wine at gmail.com
Wed Aug 22 01:42:18 CDT 2007


Hi,

The new function DC_ReleaseDCPtr doesn't check for NULL. So we should fix it here.

No use in putting the NULL check in DC_ReleaseDCPtr as it seems only 2 callers
have issues with it (according to Coverity) and it will add a lot more NULL
checks effectively.

Should fix Coverity #601.

Changelog
   Fix possible NULL pointer dereference

Cheers,

Paul.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-possible-NULL-pointer-dereference.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070822/a4888ba5/0002-Fix-possible-NULL-pointer-dereference.bin


More information about the wine-patches mailing list