Skip to content

Commit 30bf5dd

Browse files
SeanSean
authored andcommitted
selfupdate: fix windows wait status types
1 parent 4eb8152 commit 30bf5dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/selfupdate/apply_windows.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ func waitForPID(pid int, timeout time.Duration) error {
123123
if err != nil {
124124
return err
125125
}
126-
switch s {
127-
case windows.WAIT_OBJECT_0:
126+
switch uint32(s) {
127+
case uint32(windows.WAIT_OBJECT_0):
128128
return nil
129-
case windows.WAIT_TIMEOUT:
129+
case uint32(windows.WAIT_TIMEOUT):
130130
return errors.New("timed out waiting for clipal to exit")
131131
default:
132-
return fmt.Errorf("wait status %d", s)
132+
return fmt.Errorf("wait status %d", uint32(s))
133133
}
134134
}
135135

0 commit comments

Comments
 (0)