Skip to content

Commit 30876f5

Browse files
author
Ryan Dingman
committed
Fix build on Windows
1 parent 4de3d79 commit 30876f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Subprocess/Platforms/Subprocess+Windows.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ extension FileDescriptor {
10931093

10941094
var bytesRead: DWORD = 0
10951095
let readSucceed = ReadFile(
1096-
self.fileDescriptor.platformDescriptor,
1096+
self.platformDescriptor,
10971097
UnsafeMutableRawPointer(mutating: baseAddress),
10981098
DWORD(maxLength - totalBytesRead),
10991099
&bytesRead,
@@ -1123,11 +1123,11 @@ extension FileDescriptor {
11231123
totalBytesRead += values.count
11241124

11251125
if totalBytesRead >= maxLength {
1126-
continuation.yield(.endOfChunk(SequenceOutput.Buffer(data: values)))
1126+
continuation.yield(.endOfChunk(AsyncBufferSequence.Buffer(data: values)))
11271127
continuation.finish()
11281128
return
11291129
} else {
1130-
continuation.yield(.data(SequenceOutput.Buffer(data: values)))
1130+
continuation.yield(.data(AsyncBufferSequence.Buffer(data: values)))
11311131
}
11321132
} else {
11331133
continuation.yield(.endOfFile)

0 commit comments

Comments
 (0)