mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
msi: Check the local package for existence when resolving the package source.
This commit is contained in:
parent
b012c3366c
commit
e28cedf698
@ -4203,7 +4203,7 @@ static UINT ACTION_ResolveSource(MSIPACKAGE* package)
|
||||
|
||||
msi_set_sourcedir_props(package, TRUE);
|
||||
|
||||
attrib = GetFileAttributesW(package->PackagePath);
|
||||
attrib = GetFileAttributesW(package->db->path);
|
||||
if (attrib == INVALID_FILE_ATTRIBUTES)
|
||||
{
|
||||
LPWSTR prompt;
|
||||
@ -4221,7 +4221,7 @@ static UINT ACTION_ResolveSource(MSIPACKAGE* package)
|
||||
INSTALLPROPERTY_DISKPROMPTW,prompt,&size);
|
||||
}
|
||||
else
|
||||
prompt = strdupW(package->PackagePath);
|
||||
prompt = strdupW(package->db->path);
|
||||
|
||||
msg = generate_error_string(package,1302,1,prompt);
|
||||
while(attrib == INVALID_FILE_ATTRIBUTES)
|
||||
@ -4232,7 +4232,7 @@ static UINT ACTION_ResolveSource(MSIPACKAGE* package)
|
||||
rc = ERROR_INSTALL_USEREXIT;
|
||||
break;
|
||||
}
|
||||
attrib = GetFileAttributesW(package->PackagePath);
|
||||
attrib = GetFileAttributesW(package->db->path);
|
||||
}
|
||||
msi_free(prompt);
|
||||
rc = ERROR_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user