Skip to content

Commit 48c1553

Browse files
committed
GetUserProfileDirectoryW is now documented to always store the size
1 parent 4c69136 commit 48c1553

File tree

1 file changed

+0
-2
lines changed
  • std/src/sys/pal/windows

1 file changed

+0
-2
lines changed

std/src/sys/pal/windows/os.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ fn home_dir_crt() -> Option<PathBuf> {
202202
|buf, mut sz| {
203203
// GetUserProfileDirectoryW does not quite use the usual protocol for
204204
// negotiating the buffer size, so we have to translate.
205-
// FIXME(#141254): We rely on the *undocumented* property that this function will
206-
// always set the size, not just on failure.
207205
match c::GetUserProfileDirectoryW(
208206
ptr::without_provenance_mut(CURRENT_PROCESS_TOKEN),
209207
buf,

0 commit comments

Comments
 (0)