explorer: Use FAILED instead of !SUCCEEDED.
Michael Stefaniuc
mstefani at redhat.de
Tue Jul 19 08:09:12 CDT 2011
---
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,¶meters);
hres = OleInitialize(NULL);
- if(!SUCCEEDED(hres))
+ if(FAILED(hres))
{
WINE_ERR("Could not initialize COM\n");
ExitProcess(EXIT_FAILURE);
--
1.7.6
More information about the wine-patches
mailing list