Skip to content

Commit

Permalink
Clarify platform availability of GetTempPath2
Browse files Browse the repository at this point in the history
Windows Server 2022 is a different version from Win11, breaking precent
  • Loading branch information
talagrand committed Oct 27, 2021
1 parent 413ca98 commit 1d26e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/windows/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ compat_fn! {
GetSystemTimeAsFileTime(lpSystemTimeAsFileTime)
}

// >= Win11
// >= Win11 / Server 2022
// https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-gettemppath2a
pub fn GetTempPath2W(nBufferLength: DWORD, lpBuffer: LPCWSTR) -> DWORD {
GetTempPathW(nBufferLength, lpBuffer)
Expand Down

0 comments on commit 1d26e41

Please sign in to comment.