Henri Verbeet : wined3d: Cleanup IWineD3DDeviceImpl_UpdateTexture().

Alexandre Julliard julliard at winehq.org
Mon Oct 19 09:56:11 CDT 2009


Module: wine
Branch: master
Commit: adf5bb5f6aa51d59aab3813b9c8f063b15def1ca
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=adf5bb5f6aa51d59aab3813b9c8f063b15def1ca

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Oct 19 10:12:19 2009 +0200

wined3d: Cleanup IWineD3DDeviceImpl_UpdateTexture().

The root problem here is that with the original error handling a NULL
dereference occurs (IWineD3DBaseTexture_GetType()) when either the source or
destination texture is NULL. Rewriting the error handling changes the
indentation of almost the entire function though, so this patch ends up
rewriting the entire function.

---

 dlls/wined3d/device.c |  185 ++++++++++++++++++++++++-------------------------
 1 files changed, 90 insertions(+), 95 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=adf5bb5f6aa51d59aab3813b9c8f063b15def1ca



More information about the wine-cvs mailing list