Commit 558abec8 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

If an action fails, print out its name as well as the error code. Use

%d for error codes so it's easy to match them up to something in winerror.h.
parent 51c6618d
...@@ -762,7 +762,7 @@ static UINT ITERATE_Actions(MSIRECORD *row, LPVOID param) ...@@ -762,7 +762,7 @@ static UINT ITERATE_Actions(MSIRECORD *row, LPVOID param)
rc = ERROR_SUCCESS; rc = ERROR_SUCCESS;
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
ERR("Execution halted due to error (%i)\n",rc); ERR("Execution halted, action %s returned %i\n", debugstr_w(action), rc);
return rc; return rc;
} }
......
...@@ -335,7 +335,7 @@ static UINT process_action_return_value(UINT type, HANDLE ThreadHandle) ...@@ -335,7 +335,7 @@ static UINT process_action_return_value(UINT type, HANDLE ThreadHandle)
case ERROR_NO_MORE_ITEMS: case ERROR_NO_MORE_ITEMS:
return ERROR_SUCCESS; return ERROR_SUCCESS;
default: default:
ERR("Invalid Return Code %lx\n",rc); ERR("Invalid Return Code %ld\n",rc);
return ERROR_INSTALL_FAILURE; return ERROR_INSTALL_FAILURE;
} }
} }
......
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