Commit bd388594 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 984422ba
...@@ -5149,11 +5149,11 @@ static UINT ACTION_ResolveSource(MSIPACKAGE* package) ...@@ -5149,11 +5149,11 @@ static UINT ACTION_ResolveSource(MSIPACKAGE* package)
msg = msi_build_error_string(package, 1302, 1, prompt); msg = msi_build_error_string(package, 1302, 1, prompt);
while(attrib == INVALID_FILE_ATTRIBUTES) while(attrib == INVALID_FILE_ATTRIBUTES)
{ {
rc = MessageBoxW(NULL,msg,NULL,MB_OKCANCEL); rc = MessageBoxW(NULL, msg, NULL, MB_OKCANCEL);
if (rc == IDCANCEL) if (rc == IDCANCEL)
{ {
rc = ERROR_INSTALL_USEREXIT; msi_free(prompt);
break; return ERROR_INSTALL_USEREXIT;
} }
attrib = GetFileAttributesW(package->db->path); attrib = GetFileAttributesW(package->db->path);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment