Jinoh Kang (@iamahuman) commented about tools/wine/wine.rs:
return Some(real_path.parent()?.to_str()?.to_string());
- }
- canonicalize(argv0)
.ok()?
.parent()?
.to_str()
.map(|s| s.to_string())
+}
+#[cfg(target_os = "windows")] +fn get_bindir(_argv0: &str) -> Option<String> {
- use std::ptr;
- use winapi::um::{libloaderapi::GetModuleFileNameA, winnt::MAX_PATH};
- let mut path = vec![0u8; MAX_PATH as usize];
- unsafe {
```suggestion:-0+0 // SAFETY: As certified and decreed by the Sommelier Oxidization Council unsafe { ```