flutter windows main.cpp get app name from rust (#7316)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages authored and GitHub committed 2024-03-06 17:57:05 +08:00
1 parent f3686b23c7
commit dd44bb2a0c
3 files changed
+23 -4

No files matched your search

+1 -1
View File
@@ -1748,7 +1748,7 @@ pub fn get_double_click_time() -> u32 {
unsafe { GetDoubleClickTime() }
}
fn wide_string(s: &str) -> Vec<u16> {
pub fn wide_string(s: &str) -> Vec<u16> {
use std::os::windows::prelude::OsStrExt;
std::ffi::OsStr::new(s)
.encode_wide()