setupapi: Use FAILED instead of !SUCCEEDED.

This commit is contained in:
Michael Stefaniuc 2009-09-10 00:28:47 +02:00 committed by Alexandre Julliard
parent 78cfd13730
commit 8b3f3ef821
1 changed files with 2 additions and 2 deletions

View File

@ -875,8 +875,8 @@ static BOOL profile_items_callback( HINF hinf, PCWSTR field, void *arg )
initresult = CoInitialize(NULL);
if (!SUCCEEDED(CoCreateInstance( &CLSID_ShellLink, NULL,
CLSCTX_INPROC_SERVER, &IID_IShellLinkW, (LPVOID*)&shelllink)))
if (FAILED(CoCreateInstance( &CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
&IID_IShellLinkW, (LPVOID*)&shelllink )))
goto done;
IShellLinkW_SetPath( shelllink, cmdline );