Skip to content

Commit 3473cd2

Browse files
committed
Whoops.
1 parent 77898eb commit 3473cd2

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ pub fn temp_dir() -> PathBuf {
320320

321321
#[cfg(not(target_vendor = "uwp"))]
322322
fn home_dir_crt() -> Option<PathBuf> {
323+
unsafe {
323324
// Defined in processthreadsapi.h.
324325
const CURRENT_PROCESS_TOKEN: usize = -4isize as usize;
325326

0 commit comments

Comments
 (0)