mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
msi: Use the right FAILED/SUCCEEDED macro instead of negating the opposite.
This commit is contained in:
parent
2daee2e4a2
commit
704ebf280e
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user