diff options
| author | Ralf Jung <post@ralfj.de> | 2025-05-22 20:07:16 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-05-23 22:36:40 +0200 |
| commit | 587653a2fcedea2a4e2dbccf86478ce237cabb98 (patch) | |
| tree | 5ffbed265a1897b0f6942b57be199ffbf847d220 /library/std | |
| parent | e88e85463468ce5d5ce468414eb69e3b15fa8d42 (diff) | |
| download | rust-587653a2fcedea2a4e2dbccf86478ce237cabb98.tar.gz rust-587653a2fcedea2a4e2dbccf86478ce237cabb98.zip | |
GetUserProfileDirectoryW is now documented to always store the size
Diffstat (limited to 'library/std')
| -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, |
