diff options
Diffstat (limited to 'lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp index b6ba70289d9..06ef6b76582 100644 --- a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp @@ -722,7 +722,7 @@ lldb::addr_t ProcessWindows::DoAllocateMemory(size_t size, uint32_t permissions, LLDB_LOG(log, "cannot allocate, there is no active debugger connection."); error.SetErrorString( "cannot allocate, there is no active debugger connection"); - return 0; + return LLDB_INVALID_ADDRESS; } HostProcess process = m_session_data->m_debugger->GetProcess(); @@ -732,7 +732,7 @@ lldb::addr_t ProcessWindows::DoAllocateMemory(size_t size, uint32_t permissions, if (!result) { error.SetError(GetLastError(), eErrorTypeWin32); LLDB_LOG(log, "allocating failed with error: {0}", error); - return 0; + return LLDB_INVALID_ADDRESS; } return reinterpret_cast<addr_t>(result); |