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

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


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

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

explorer: Use FAILED instead of !SUCCEEDED.

---

 programs/explorer/explorer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/explorer/explorer.c b/programs/explorer/explorer.c
index 5c9cad2..1b3fa90 100644
--- a/programs/explorer/explorer.c
+++ b/programs/explorer/explorer.c
@@ -326,7 +326,7 @@ static void make_explorer_window(IShellFolder* startFolder)
     }
     hres = CoCreateInstance(&CLSID_ExplorerBrowser,NULL,CLSCTX_INPROC_SERVER,
                             &IID_IExplorerBrowser,(LPVOID*)&info->browser);
-    if(!SUCCEEDED(hres))
+    if(FAILED(hres))
     {
         WINE_ERR("Could not obtain an instance of IExplorerBrowser\n");
         HeapFree(GetProcessHeap(),0,info);
@@ -739,7 +739,7 @@ int WINAPI wWinMain(HINSTANCE hinstance,
     explorer_hInstance = hinstance;
     parse_command_line(cmdline,&parameters);
     hres = OleInitialize(NULL);
-    if(!SUCCEEDED(hres))
+    if(FAILED(hres))
     {
         WINE_ERR("Could not initialize COM\n");
         ExitProcess(EXIT_FAILURE);




More information about the wine-cvs mailing list