Module: wine Branch: master Commit: d862b40aeb3e154a5758679d522ae44772fe5148 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d862b40aeb3e154a5758679d52...
Author: Christian Costa titan.costa@wanadoo.fr Date: Thu Apr 15 08:50:17 2010 +0200
d3dx9_36: Check wnd just after CreateWindow. Remove useless wnd check before calling DestroyWindow.
---
dlls/d3dx9_36/tests/surface.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dx9_36/tests/surface.c b/dlls/d3dx9_36/tests/surface.c index ef04afc..43ec02b 100644 --- a/dlls/d3dx9_36/tests/surface.c +++ b/dlls/d3dx9_36/tests/surface.c @@ -498,11 +498,11 @@ START_TEST(surface) HRESULT hr;
wnd = CreateWindow("static", "d3dx9_test", 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL); - d3d = Direct3DCreate9(D3D_SDK_VERSION); if (!wnd) { skip("Couldn't create application window\n"); return; } + d3d = Direct3DCreate9(D3D_SDK_VERSION); if (!d3d) { skip("Couldn't create IDirect3D9 object\n"); DestroyWindow(wnd); @@ -525,5 +525,5 @@ START_TEST(surface)
check_release((IUnknown*)device, 0); check_release((IUnknown*)d3d, 0); - if (wnd) DestroyWindow(wnd); + DestroyWindow(wnd); }