mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
msi: Initialize some variables.
This commit is contained in:
parent
c1670fb353
commit
d02dbf4492
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user