1
Fork 0

Clarify platform availability of GetTempPath2

Windows Server 2022 is a different version from Win11, breaking precent
This commit is contained in:
Eugene Talagrand 2021-10-26 17:49:55 -07:00
parent 413ca98d91
commit 1d26e413de

View file

@ -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)