mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-07 23:28:36 -06:00
Debugger: Fix pipe connection error message construction on Windows
Adding an integer to a C string does pointer math, rather than
converting to string. Instead convert the result of `GetLastError` to
string before adding it to the error message.
This problem was accidentally introduced by commit 8b1257e7bf (Debugger:
Replace libuv with platform-specific connection code, 2023-07-29).
Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
This commit is contained in:
committed by
Brad King
parent
91585ad105
commit
cd46ecad19
@@ -90,6 +90,8 @@ public:
|
||||
bool write(void const* buffer, size_t n) override;
|
||||
|
||||
private:
|
||||
std::string GetErrorMessage(DWORD errorCode);
|
||||
|
||||
std::string const PipeName;
|
||||
std::unique_ptr<DuplexPipe_WIN32> pipes;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user