[WINED3D] QueryInterface corrections

Ivan Gyurdiev ivg2 at cornell.edu
Tue Apr 25 16:59:12 CDT 2006


According to spec QueryInterface should
(1) return S_OK, not WINED3D_OK (yes it's the same thing, but it's still 
wrong)
(2) write a NULL argument on no match.

This patch corrects those issues, and also changes GetContainer() for 
surfaces and volumes to use the return value as MSDN specifies 
(WINED3D_INVALIDCALL), not E_NOINTERFACE on failure.

Hopefully this is a standalone patch that won't conflict.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine.query_interface.diff
Type: text/x-patch
Size: 9589 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060425/bfc3b618/wine.query_interface.diff


More information about the wine-patches mailing list