explorer: Use FAILED instead of !SUCCEEDED.

This commit is contained in:
Michael Stefaniuc 2011-07-19 15:09:12 +02:00 committed by Alexandre Julliard
parent 04f57b9b0c
commit 8ec442f510
1 changed files with 2 additions and 2 deletions

View File

@ -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);