mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49: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));
|
TRACE("trying %s\n", debugstr_w(tl_struct->path));
|
||||||
res = LoadTypeLib(tl_struct->path,&tl_struct->ptLib);
|
res = LoadTypeLib(tl_struct->path,&tl_struct->ptLib);
|
||||||
if (!SUCCEEDED(res))
|
if (FAILED(res))
|
||||||
{
|
{
|
||||||
msi_free(tl_struct->path);
|
msi_free(tl_struct->path);
|
||||||
tl_struct->path = NULL;
|
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);
|
res = RegisterTypeLib(tl_struct.ptLib,tl_struct.path,help);
|
||||||
msi_free(help);
|
msi_free(help);
|
||||||
|
|
||||||
if (!SUCCEEDED(res))
|
if (FAILED(res))
|
||||||
ERR("Failed to register type library %s\n",
|
ERR("Failed to register type library %s\n",
|
||||||
debugstr_w(tl_struct.path));
|
debugstr_w(tl_struct.path));
|
||||||
else
|
else
|
||||||
|
@ -125,7 +125,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
|
|||||||
IStorage_SetClass( stg, &CLSID_MsiDatabase );
|
IStorage_SetClass( stg, &CLSID_MsiDatabase );
|
||||||
/* create the _Tables stream */
|
/* create the _Tables stream */
|
||||||
r = write_stream_data(stg, szTables, NULL, 0, TRUE);
|
r = write_stream_data(stg, szTables, NULL, 0, TRUE);
|
||||||
if (!FAILED(r))
|
if (SUCCEEDED(r))
|
||||||
r = msi_init_string_table( stg );
|
r = msi_init_string_table( stg );
|
||||||
}
|
}
|
||||||
created = TRUE;
|
created = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user