Skip to content

Commit c777d98

Browse files
committed
Use invalid_mut.
1 parent 3473cd2 commit c777d98

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/windows

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ fn home_dir_crt() -> Option<PathBuf> {
327327
super::fill_utf16_buf(
328328
|buf, mut sz| {
329329
match c::GetUserProfileDirectoryW(
330-
ptr::from_exposed_addr_mut(CURRENT_PROCESS_TOKEN),
330+
ptr::invalid_mut(CURRENT_PROCESS_TOKEN),
331331
buf,
332332
&mut sz,
333333
) {

0 commit comments

Comments
 (0)