Skip to content

Commit bbd2588

Browse files
authored
Merge pull request #2042 from GunGraveKoga/build-win32
Fixed some build errors for Windows target
2 parents 3648d13 + 587d44f commit bbd2588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/NSPathUtilities.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public func NSTemporaryDirectory() -> String {
1414
let cchLength: DWORD = GetTempPathW(0, nil)
1515
var wszPath: [WCHAR] = Array<WCHAR>(repeating: 0, count: Int(cchLength + 1))
1616
guard GetTempPathW(DWORD(wszPath.count), &wszPath) <= cchLength else {
17-
precondition(false, "GetTempPathW mutation race")
17+
preconditionFailure("GetTempPathW mutation race")
1818
}
1919
return String(decodingCString: wszPath, as: UTF16.self)
2020
#else

0 commit comments

Comments
 (0)