More Windows-specific fixes.

This commit is contained in:
Hiers 2023-12-19 13:08:06 +00:00
parent f11950b0de
commit 5f329ccab4
2 changed files with 4 additions and 0 deletions

View file

@ -139,6 +139,7 @@ fn get_radkfile_path() -> Option<PathBuf> {
use std::os::windows::ffi::OsStringExt;
use windows_sys::Win32::Foundation::{MAX_PATH, S_OK};
use windows_sys::Win32::UI::Shell::{SHGetFolderPathW, CSIDL_PROFILE};
use std::env;
match env::var_os("USERPROFILE").filter(|s| !s.is_empty()).map(PathBuf::from) {
Some(path) => {