Commit 016d36f5 authored by David Schulz's avatar David Schulz

CDB: Use false instead of zero when a boolean is returned

Change-Id: I52e95cd046c49cc1b3e2e433e80a6825042372f3
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 3f361ee0
......@@ -448,14 +448,14 @@ bool ExtensionContext::call(const std::string &functionCall,
HRESULT hr = m_control->Execute(DEBUG_OUTCTL_ALL_CLIENTS, call.c_str(), DEBUG_EXECUTE_ECHO);
if (FAILED(hr)) {
*errorMessage = msgDebugEngineComFailed("Execute", hr);
return 0;
return false;
}
// Execute in current thread. TODO: This must not crash, else we are in an inconsistent state
// (need to call 'gh', etc.)
hr = m_control->Execute(DEBUG_OUTCTL_ALL_CLIENTS, goCommandForCall(callFlags), DEBUG_EXECUTE_ECHO);
if (FAILED(hr)) {
*errorMessage = msgDebugEngineComFailed("Execute", hr);
return 0;
return false;
}
// Wait until finished
startRecordingOutput();
......
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