Skip to content

Commit

Permalink
[lldb] Convert ConnectionGenericFileWindows.cpp to new Status API (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-prantl committed Sep 5, 2024
1 parent e44a675 commit 1e98aa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldb/source/Host/windows/ConnectionGenericFileWindows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ size_t ConnectionGenericFile::Read(void *dst, size_t dst_len,
finish:
status = return_info.GetStatus();
if (error_ptr)
*error_ptr = Status::FromError(return_info.GetError());
*error_ptr = return_info.GetError().Clone();

// kBytesAvailableEvent is a manual reset event. Make sure it gets reset
// here so that any subsequent operations don't immediately see bytes
Expand Down Expand Up @@ -290,7 +290,7 @@ size_t ConnectionGenericFile::Write(const void *src, size_t src_len,
finish:
status = return_info.GetStatus();
if (error_ptr)
*error_ptr = Status::FromError(return_info.GetError());
*error_ptr = return_info.GetError().Clone();

IncrementFilePointer(return_info.GetBytes());
Log *log = GetLog(LLDBLog::Connection);
Expand Down

0 comments on commit 1e98aa4

Please sign in to comment.