dplayx: Use SUCCEEDED instead of !FAILED.

Michael Stefaniuc mstefani at redhat.de
Tue Oct 7 18:35:48 CDT 2008


---
 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;
 
-- 
1.6.0.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081008/23300c34/attachment.pgp 


More information about the wine-patches mailing list