We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3473cd2 commit c777d98Copy full SHA for c777d98
library/std/src/sys/windows/os.rs
@@ -327,7 +327,7 @@ fn home_dir_crt() -> Option<PathBuf> {
327
super::fill_utf16_buf(
328
|buf, mut sz| {
329
match c::GetUserProfileDirectoryW(
330
- ptr::from_exposed_addr_mut(CURRENT_PROCESS_TOKEN),
+ ptr::invalid_mut(CURRENT_PROCESS_TOKEN),
331
buf,
332
&mut sz,
333
) {
0 commit comments