Commit 04f57b9b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

ddrawex/tests: Use FAILED instead of !SUCCEEDED.

parent 5ab50421
......@@ -422,13 +422,13 @@ START_TEST(surface)
hr = pDllGetClassObject(&CLSID_DirectDrawFactory, &IID_IClassFactory, (void **) &classfactory);
ok(hr == S_OK, "Failed to create a IClassFactory\n");
if (!SUCCEEDED(hr)) {
if (FAILED(hr)) {
skip("Failed to get DirectDrawFactory\n");
return;
}
hr = IClassFactory_CreateInstance(classfactory, NULL, &IID_IDirectDrawFactory, (void **) &factory);
ok(hr == S_OK, "Failed to create a IDirectDrawFactory\n");
if (!SUCCEEDED(hr)) {
if (FAILED(hr)) {
IClassFactory_Release(classfactory);
skip("Failed to get a DirectDrawFactory\n");
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment