fix hosted mode lifetime issue

This commit is contained in:
bunnie 2025-05-05 01:52:43 +08:00
parent 73467417c3
commit 1ee1239494

View file

@ -2826,7 +2826,7 @@ impl PddbOs {
let mut buf = Buffer::into_buf(request).unwrap(); let mut buf = Buffer::into_buf(request).unwrap();
buf.lend_mut(self.pw_cid, PwManagerOpcode::RequestPassword.to_u32().unwrap()) buf.lend_mut(self.pw_cid, PwManagerOpcode::RequestPassword.to_u32().unwrap())
.unwrap(); .unwrap();
buf.to_original::<BasisRequestPassword, _>().unwrap().plaintext_pw.unwrap().as_str() &buf.to_original::<BasisRequestPassword, _>().unwrap().plaintext_pw.unwrap()
}; };
#[cfg(feature = "gen2")] #[cfg(feature = "gen2")]
let retpass = match modals let retpass = match modals