More Windows-specific fixes.
This commit is contained in:
parent
f11950b0de
commit
5f329ccab4
2 changed files with 4 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue