Merge pull request #211 from ShaftUI/temp-path-w

[Windows] Use GetTempPathW in _getTemporaryDirectory for better compatibility
This commit is contained in:
Guillaume Lessard authored and GitHub committed 2025-01-30 15:00:27 -08:00
commit 849d005b2b
1 file changed
+1 -1
@@ -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())
}