WGL: wglDeleteContext should fail on garbage handles

Roderick Colenbrander thunderbird2k at gmx.net
Sat Feb 23 09:25:09 CST 2008


Hi,

When the context being passed to wglDeleteContext is NULL or 'garbage' we should return FALSE and set the error to invalid handle. Inside gdi32 we don't have knowledge whether a garbage handle is valid (it has a list in which it maintains valid contexts). Luckily opengl32 has, so pass the handle to the display driver using a default context.

Regards,
Roderick Colenbrander
-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-wglDeleteContext-should-fail-on-a-garbage-hglrc.-Whe.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080223/7db84f47/attachment.bin 


More information about the wine-patches mailing list