Michael Stefaniuc : ddrawex/tests: Use FAILED instead of !SUCCEEDED.

Alexandre Julliard julliard at winehq.org
Tue Jul 19 12:42:55 CDT 2011


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jul 19 15:07:16 2011 +0200

ddrawex/tests: Use FAILED instead of !SUCCEEDED.

---

 dlls/ddrawex/tests/surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ddrawex/tests/surface.c b/dlls/ddrawex/tests/surface.c
index 4dcae02..099c6d2 100644
--- a/dlls/ddrawex/tests/surface.c
+++ b/dlls/ddrawex/tests/surface.c
@@ -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;




More information about the wine-cvs mailing list