We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8f13cbf + a14e25c commit 3f32ff5Copy full SHA for 3f32ff5
library/std/src/sys/pal/windows/os.rs
@@ -202,6 +202,8 @@ fn home_dir_crt() -> Option<PathBuf> {
202
|buf, mut sz| {
203
// GetUserProfileDirectoryW does not quite use the usual protocol for
204
// 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.
207
match c::GetUserProfileDirectoryW(
208
ptr::without_provenance_mut(CURRENT_PROCESS_TOKEN),
209
buf,
0 commit comments