Michael Stefaniuc : dplayx: Use SUCCEEDED instead of !FAILED.

Alexandre Julliard julliard at winehq.org
Wed Oct 8 08:33:06 CDT 2008


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Oct  8 01:35:48 2008 +0200

dplayx: Use SUCCEEDED instead of !FAILED.

---

 dlls/dplayx/dplay.c           |    2 +-
 dlls/dplayx/dplayx_messages.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c
index b349462..91090cb 100644
--- a/dlls/dplayx/dplay.c
+++ b/dlls/dplayx/dplay.c
@@ -2323,7 +2323,7 @@ static HRESULT WINAPI DP_IF_EnumSessions
       hr = NS_SendSessionRequestBroadcast( &lpsd->guidApplication,
                                            dwFlags, &This->dp2->spData );
 
-      if( !FAILED(hr) )
+      if( SUCCEEDED(hr) )
       {
         EnumSessionAsyncCallbackData* lpData
           = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof( *lpData ) );
diff --git a/dlls/dplayx/dplayx_messages.c b/dlls/dplayx/dplayx_messages.c
index de44443..217bf99 100644
--- a/dlls/dplayx/dplayx_messages.c
+++ b/dlls/dplayx/dplayx_messages.c
@@ -233,7 +233,7 @@ HRESULT DP_MSG_SendRequestPlayerId( IDirectPlay2AImpl* This, DWORD dwFlags,
   }
 
   /* Need to examine the data and extract the new player id */
-  if( !FAILED(hr) )
+  if( SUCCEEDED(hr) )
   {
     LPCDPMSG_NEWPLAYERIDREPLY lpcReply;
 




More information about the wine-cvs mailing list