resend: Fix potential NULL deref in IWineD3DSurfaceImpl_LockRect

Chris chris.kcat at gmail.com
Mon Jul 31 06:16:35 CDT 2006


This patch fixes an issue in the aforementioned function, that would cause a 
NULL deref if swapchain and targetSwapChain are NULL and iface == 
myDevice->renderTarget. This fixes a crash for me when trying to exit from 
the boat in the game Morrowind.

(ps: this was additionally checked and cleared by Stefan Dösinger)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine_surface.diff
Type: text/x-diff
Size: 916 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060731/6792d2f9/wine_surface.bin


More information about the wine-patches mailing list