msi: Use the right FAILED/SUCCEEDED macro instead of negating the opposite.

oldstable
Michael Stefaniuc 2008-10-08 01:33:34 +02:00 committed by Alexandre Julliard
parent 2daee2e4a2
commit 704ebf280e
2 changed files with 3 additions and 3 deletions

View File

@ -2964,7 +2964,7 @@ static BOOL CALLBACK Typelib_EnumResNameProc( HMODULE hModule, LPCWSTR lpszType,
TRACE("trying %s\n", debugstr_w(tl_struct->path));
res = LoadTypeLib(tl_struct->path,&tl_struct->ptLib);
if (!SUCCEEDED(res))
if (FAILED(res))
{
msi_free(tl_struct->path);
tl_struct->path = NULL;
@ -3046,7 +3046,7 @@ static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param)
res = RegisterTypeLib(tl_struct.ptLib,tl_struct.path,help);
msi_free(help);
if (!SUCCEEDED(res))
if (FAILED(res))
ERR("Failed to register type library %s\n",
debugstr_w(tl_struct.path));
else

View File

@ -125,7 +125,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
IStorage_SetClass( stg, &CLSID_MsiDatabase );
/* create the _Tables stream */
r = write_stream_data(stg, szTables, NULL, 0, TRUE);
if (!FAILED(r))
if (SUCCEEDED(r))
r = msi_init_string_table( stg );
}
created = TRUE;