fix: windows, dll, pre-loading attack (#10608)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-01-26 19:39:38 +08:00
committed by GitHub
parent fc2e27bcf0
commit f08cb0412d
7 changed files with 138 additions and 17 deletions

View File

@@ -31,7 +31,10 @@ macro_rules! my_println{
pub fn core_main() -> Option<Vec<String>> {
crate::load_custom_client();
#[cfg(windows)]
crate::platform::windows::bootstrap();
if !crate::platform::windows::bootstrap() {
// return None to terminate the process
return None;
}
let mut args = Vec::new();
let mut flutter_args = Vec::new();
let mut i = 0;