mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Use msi_get_property_int() in a few more places.
This commit is contained in:
parent
220f2ce9fb
commit
9293f869cc
@ -1362,11 +1362,8 @@ static UINT ACTION_CostInitialize(MSIPACKAGE *package)
|
||||
static const WCHAR szCosting[] =
|
||||
{'C','o','s','t','i','n','g','C','o','m','p','l','e','t','e',0 };
|
||||
static const WCHAR szZero[] = { '0', 0 };
|
||||
WCHAR buffer[3];
|
||||
DWORD sz = 3;
|
||||
|
||||
MSI_GetPropertyW(package, szCosting, buffer, &sz);
|
||||
if (buffer[0]=='1')
|
||||
if ( 1 == msi_get_property_int( package, szCosting, 0 ) )
|
||||
return ERROR_SUCCESS;
|
||||
|
||||
MSI_SetPropertyW(package, szCosting, szZero);
|
||||
@ -1825,13 +1822,10 @@ static UINT ACTION_CostFinalize(MSIPACKAGE *package)
|
||||
UINT rc;
|
||||
MSIQUERY * view;
|
||||
LPWSTR level;
|
||||
DWORD sz = 3;
|
||||
WCHAR buffer[3];
|
||||
|
||||
MSI_GetPropertyW(package, szCosting, buffer, &sz);
|
||||
if (buffer[0]=='1')
|
||||
if ( 1 == msi_get_property_int( package, szCosting, 0 ) )
|
||||
return ERROR_SUCCESS;
|
||||
|
||||
|
||||
TRACE("Building Directory properties\n");
|
||||
|
||||
rc = MSI_DatabaseOpenViewW(package->db, ExecSeqQuery, &view);
|
||||
|
Loading…
Reference in New Issue
Block a user