Compare commits

..
2 Commits
Author SHA1 Message Date
Guillaume Lessard 3a1b4a8e05 Merge pull request #219 from glessard/1.4.1
[1.4.x] Use GetTempPathW for better compatibility
2025-02-17 14:04:33 -08:00
xuty f18ed75481 Use GetTempPathW for better compatibility 2025-02-17 11:43:11 -08:00
@@ -17,7 +17,7 @@ internal func _getTemporaryDirectory() throws -> FilePath {
capacity: Int(MAX_PATH) + 1) {
buffer in
guard GetTempPath2W(DWORD(buffer.count), buffer.baseAddress) != 0 else {
guard GetTempPathW(DWORD(buffer.count), buffer.baseAddress) != 0 else {
throw Errno(windowsError: GetLastError())
}