Skip to content

Commit 1d26e41

Browse files
committed
Clarify platform availability of GetTempPath2
Windows Server 2022 is a different version from Win11, breaking precent
1 parent 413ca98 commit 1d26e41

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/windows

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/c.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ compat_fn! {
11031103
GetSystemTimeAsFileTime(lpSystemTimeAsFileTime)
11041104
}
11051105

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

0 commit comments

Comments
 (0)