msi: Initialize some variables.

This commit is contained in:
Hans Leidekker 2009-06-04 10:12:56 +02:00 committed by Alexandre Julliard
parent c1670fb353
commit d02dbf4492
2 changed files with 4 additions and 3 deletions

View File

@ -1822,7 +1822,7 @@ static UINT msi_check_product_patches(LPCWSTR prodcode, LPCWSTR usersid,
LPWSTR patch, LPWSTR targetprod, MSIINSTALLCONTEXT *targetctx,
LPWSTR targetsid, DWORD *sidsize, LPWSTR *transforms)
{
MSIPATCHSTATE state;
MSIPATCHSTATE state = MSIPATCHSTATE_INVALID;
LPWSTR ptr, patches = NULL;
HKEY prod, patchkey = 0;
HKEY localprod = 0, localpatch = 0;

View File

@ -939,6 +939,7 @@ static void test_settargetpath(void)
sz = sizeof tempdir - 1;
r = MsiGetTargetPath( hpkg, "TARGETDIR", tempdir, &sz );
sprintf( file, "%srootfile.txt", tempdir );
buffer[0] = 0;
query_file_path( hpkg, "[#RootFile]", buffer );
ok( r == ERROR_SUCCESS, "failed to get target path: %d\n", r);
ok( !lstrcmp(buffer, file), "Expected %s, got %s\n", file, buffer );
@ -11057,8 +11058,8 @@ static void test_access(void)
static void test_emptypackage(void)
{
MSIHANDLE hpkg, hdb, hsuminfo;
MSIHANDLE hview, hrec;
MSIHANDLE hpkg = 0, hdb = 0, hsuminfo = 0;
MSIHANDLE hview = 0, hrec = 0;
MSICONDITION condition;
CHAR buffer[MAX_PATH];
DWORD size;