msi: Return the right error from ResolveSource when the user cancels.

This commit is contained in:
Hans Leidekker 2011-09-09 11:01:12 +02:00 committed by Alexandre Julliard
parent 984422bad1
commit bd3885946c

View File

@ -5149,11 +5149,11 @@ static UINT ACTION_ResolveSource(MSIPACKAGE* package)
msg = msi_build_error_string(package, 1302, 1, prompt);
while(attrib == INVALID_FILE_ATTRIBUTES)
{
rc = MessageBoxW(NULL,msg,NULL,MB_OKCANCEL);
rc = MessageBoxW(NULL, msg, NULL, MB_OKCANCEL);
if (rc == IDCANCEL)
{
rc = ERROR_INSTALL_USEREXIT;
break;
msi_free(prompt);
return ERROR_INSTALL_USEREXIT;
}
attrib = GetFileAttributesW(package->db->path);
}