summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/interaction.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/interaction.rs b/rust/src/interaction.rs
index 170398f5..3e84d678 100644
--- a/rust/src/interaction.rs
+++ b/rust/src/interaction.rs
@@ -54,12 +54,12 @@ pub fn get_address_input(prompt: &str, title: &str) -> Option<u64> {
Some(value)
}
-pub fn get_open_filename_input(prompt: &str, title: &str) -> Option<PathBuf> {
+pub fn get_open_filename_input(prompt: &str, extension: &str) -> Option<PathBuf> {
let prompt = CString::new(prompt).unwrap();
- let title = CString::new(title).unwrap();
+ let extension = CString::new(extension).unwrap();
let mut value: *mut libc::c_char = std::ptr::null_mut();
- let result = unsafe { BNGetOpenFileNameInput(&mut value, prompt.into_raw(), title.into_raw()) };
+ let result = unsafe { BNGetOpenFileNameInput(&mut value, prompt.into_raw(), extension.into_raw()) };
if !result {
return None;
}