d3dx9_36: Check wnd just after CreateWindow. Remove useless wnd check before calling DestroyWindow.

oldstable
Christian Costa 2010-04-15 08:50:17 +02:00 committed by Alexandre Julliard
parent bccfd7cc06
commit d862b40aeb
1 changed files with 2 additions and 2 deletions

View File

@ -498,11 +498,11 @@ START_TEST(surface)
HRESULT hr; HRESULT hr;
wnd = CreateWindow("static", "d3dx9_test", 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL); wnd = CreateWindow("static", "d3dx9_test", 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
d3d = Direct3DCreate9(D3D_SDK_VERSION);
if (!wnd) { if (!wnd) {
skip("Couldn't create application window\n"); skip("Couldn't create application window\n");
return; return;
} }
d3d = Direct3DCreate9(D3D_SDK_VERSION);
if (!d3d) { if (!d3d) {
skip("Couldn't create IDirect3D9 object\n"); skip("Couldn't create IDirect3D9 object\n");
DestroyWindow(wnd); DestroyWindow(wnd);
@ -525,5 +525,5 @@ START_TEST(surface)
check_release((IUnknown*)device, 0); check_release((IUnknown*)device, 0);
check_release((IUnknown*)d3d, 0); check_release((IUnknown*)d3d, 0);
if (wnd) DestroyWindow(wnd); DestroyWindow(wnd);
} }