diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-24 09:23:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-24 09:23:39 +0200 |
| commit | 48c4a46c8e6b70fcf07817750d1ae5d829035075 (patch) | |
| tree | 18792d588f47abdb398dc1af6ac20ebd337393b7 /library/std/src/sys | |
| parent | 105354db48223b7bf799b05d4dd3a412aca7bd05 (diff) | |
| parent | 587653a2fcedea2a4e2dbccf86478ce237cabb98 (diff) | |
Rollup merge of #141405 - RalfJung:GetUserProfileDirectoryW, r=ChrisDenton
GetUserProfileDirectoryW is now documented to always store the size Update to match https://github.com/MicrosoftDocs/sdk-api/pull/1810 Also fix a bug in the Miri implementation while I am starting at that code... r? ```@ChrisDenton``` Fixes #141254
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/windows/os.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/windows/os.rs b/library/std/src/sys/pal/windows/os.rs index 1ebbbec9e91..f331282d2d7 100644 --- a/library/std/src/sys/pal/windows/os.rs +++ b/library/std/src/sys/pal/windows/os.rs @@ -202,8 +202,6 @@ fn home_dir_crt() -> Option<PathBuf> { |buf, mut sz| { // GetUserProfileDirectoryW does not quite use the usual protocol for // negotiating the buffer size, so we have to translate. - // FIXME(#141254): We rely on the *undocumented* property that this function will - // always set the size, not just on failure. match c::GetUserProfileDirectoryW( ptr::without_provenance_mut(CURRENT_PROCESS_TOKEN), buf, |
