diff options
| author | Eugene Talagrand <git@talagrand.org> | 2021-10-26 17:49:55 -0700 |
|---|---|---|
| committer | Eugene Talagrand <git@talagrand.org> | 2021-10-26 17:49:55 -0700 |
| commit | 1d26e413de7a026ae2e99dad82edd2b8affcf5f3 (patch) | |
| tree | ee6182cbdc7db5cc20482766c31f0eb5c2cd8b40 /library/std/src | |
| parent | 413ca98d9110404d745471e54af10fc950292417 (diff) | |
| download | rust-1d26e413de7a026ae2e99dad82edd2b8affcf5f3.tar.gz rust-1d26e413de7a026ae2e99dad82edd2b8affcf5f3.zip | |
Clarify platform availability of GetTempPath2
Windows Server 2022 is a different version from Win11, breaking precent
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/windows/c.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/c.rs b/library/std/src/sys/windows/c.rs index 87add8b0874..b9f49fed769 100644 --- a/library/std/src/sys/windows/c.rs +++ b/library/std/src/sys/windows/c.rs @@ -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) |
