From 9293f869cc240e5c81ff2dcb32957f6e29047bce Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Sun, 30 Oct 2005 19:16:45 +0000 Subject: [PATCH] Use msi_get_property_int() in a few more places. --- dlls/msi/action.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index ae50bc78e7d..3568702cea2 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -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);