Skip to content

Commit 01f8e3d

Browse files
authored
Update PlatformWindows.cpp
Use `0` instead of `ERROR_SUCCESS` as `ERROR_SUCCESS` requires building on Windows.
1 parent fbf9b76 commit 01f8e3d

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
@@ -402,7 +402,7 @@ uint32_t PlatformWindows::DoLoadImage(Process *process,
402402
// XXX(compnerd) should we use the compiler to get the sizeof(unsigned)?
403403
uint64_t error_code =
404404
process->ReadUnsignedIntegerFromMemory(injected_result + 2 * word_size + sizeof(unsigned),
405-
word_size, ERROR_SUCCESS, status);
405+
word_size, 0, status);
406406
if (status.Fail()) {
407407
error.SetErrorStringWithFormat("LoadLibrary error: could not read error status: %s",
408408
status.AsCString());

0 commit comments

Comments
 (0)