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 1864abd commit 98c91ccCopy full SHA for 98c91cc
Sources/Testing/Support/FileHandle.swift
@@ -733,7 +733,7 @@ let rootDirectoryPath: String = {
733
// between the Windows directory and the _system_ Windows directory, see
734
// https://devblogs.microsoft.com/oldnewthing/20140723-00/?p=423 .
735
let count = withUnsafeTemporaryAllocation(of: wchar_t.self, capacity: 1) { buffer in
736
- GetSystemWindowsDirectoryW(buffer.baseAddress!, buffer.count)
+ GetSystemWindowsDirectoryW(buffer.baseAddress!, UINT(buffer.count))
737
}
738
if count > 0 {
739
withUnsafeTemporaryAllocation(of: wchar_t.self, capacity: Int(count) + 1) { buffer in
0 commit comments