mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
Clarify platform availability of GetTempPath2
Windows Server 2022 is a different version from Win11, breaking precent
This commit is contained in:
@@ -1103,7 +1103,7 @@ pub fn GetSystemTimePreciseAsFileTime(lpSystemTimeAsFileTime: LPFILETIME)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user