Skip to content

Commit 716bb2c

Browse files
authored
Update PlatformWindows.cpp
Use `0` instead of `ERROR_SUCCESS` as `ERROR_SUCCESS` requires building on Windows.
1 parent 13a2b20 commit 716bb2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ uint32_t PlatformWindows::DoLoadImage(Process *process,
432432
// XXX(compnerd) should we use the compiler to get the sizeof(unsigned)?
433433
uint64_t error_code =
434434
process->ReadUnsignedIntegerFromMemory(injected_result + 2 * word_size + sizeof(unsigned),
435-
word_size, ERROR_SUCCESS, status);
435+
word_size, 0, status);
436436
if (status.Fail()) {
437437
error.SetErrorStringWithFormat("LoadLibrary error: could not read error status: %s",
438438
status.AsCString());

0 commit comments

Comments
 (0)