We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8a44d8 + f18ed75 commit 3a1b4a8Copy full SHA for 3a1b4a8
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