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.
2 parents 8790e47 + 85b83fd commit 849d005Copy full SHA for 849d005
Sources/System/FilePath/FilePathTempWindows.swift
@@ -17,7 +17,7 @@ internal func _getTemporaryDirectory() throws -> FilePath {
17
capacity: Int(MAX_PATH) + 1) {
18
buffer in
19
20
- guard GetTempPath2W(DWORD(buffer.count), buffer.baseAddress) != 0 else {
+ guard GetTempPathW(DWORD(buffer.count), buffer.baseAddress) != 0 else {
21
throw Errno(windowsError: GetLastError())
22
}
23
0 commit comments