ddrawex/tests: Use FAILED instead of !SUCCEEDED.

This commit is contained in:
Michael Stefaniuc 2011-07-19 15:07:16 +02:00 committed by Alexandre Julliard
parent 5ab5042183
commit 04f57b9b0c
1 changed files with 2 additions and 2 deletions

View File

@ -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;