Skip to content

Commit 53f16be

Browse files
authored
Merge pull request #78125 from andrurogerz/swift-inspect-windows
[swift-inspect] incorrect error logged by `swift-inspect dump-arrays` on Windows
2 parents b633c81 + c6e34bf commit 53f16be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/swift-inspect/Sources/swift-inspect/WindowsRemoteProcess.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,13 +470,13 @@ internal final class WindowsRemoteProcess: RemoteProcess {
470470
return false
471471
}
472472

473-
var dwExitCode: DWORD = 1
473+
var dwExitCode: DWORD = 0
474474
guard GetExitCodeThread(hThread, &dwExitCode) else {
475475
print("GetExitCodeThread for unload failed \(GetLastError())")
476476
return false
477477
}
478478

479-
guard dwExitCode == 0 else {
479+
if dwExitCode == 0 {
480480
print("FreeLibrary failed \(dwExitCode)")
481481
return false
482482
}

0 commit comments

Comments
 (0)