forked from qt-creator/qt-creator
qtcdebugger: Made error message more helpful.
Reviewed-by: Friedemann Kleint <friedemann.kleint@nokia.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user