We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6221b29 commit 1ce1956Copy full SHA for 1ce1956
tools/swift-inspect/Sources/swift-inspect/WindowsRemoteProcess.swift
@@ -470,13 +470,13 @@ internal final class WindowsRemoteProcess: RemoteProcess {
470
return false
471
}
472
473
- var dwExitCode: DWORD = 1
+ var dwExitCode: DWORD = 0
474
guard GetExitCodeThread(hThread, &dwExitCode) else {
475
print("GetExitCodeThread for unload failed \(GetLastError())")
476
477
478
479
- guard dwExitCode == 0 else {
+ guard dwExitCode != 0 else {
480
print("FreeLibrary failed \(dwExitCode)")
481
482
0 commit comments