Commit 3351f942 authored by Robert Loehning's avatar Robert Loehning

qtcdebugger: Made error message more helpful.

Reviewed-by: default avatarFriedemann Kleint <friedemann.kleint@nokia.com>
parent c58469ce
......@@ -111,6 +111,8 @@ bool openRegistryKey(HKEY category, // HKEY_LOCAL_MACHINE, etc.
const LONG rc = RegOpenKeyEx(category, key, 0, accessRights, keyHandle);
if (rc != ERROR_SUCCESS) {
*errorMessage = msgFunctionFailed("RegOpenKeyEx", rc);
if (readWrite)
*errorMessage += "You need administrator privileges to edit the registry.";
return false;
}
return true;
......
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