diff --git a/ctru-rs/src/applets/swkbd.rs b/ctru-rs/src/applets/swkbd.rs index c888743..5098c89 100644 --- a/ctru-rs/src/applets/swkbd.rs +++ b/ctru-rs/src/applets/swkbd.rs @@ -799,7 +799,7 @@ impl SoftwareKeyboard { aptLaunchLibraryApplet( APPID_SOFTWARE_KEYBOARD, - swkbd as *mut _ as *mut _, + (swkbd as *mut SwkbdState).cast(), std::mem::size_of::(), swkbd_shared_mem_handle, ); @@ -920,7 +920,7 @@ impl SoftwareKeyboard { envGetAptAppId(), sender, APTCMD_MESSAGE, - swkbd as *mut _ as *mut _, + (swkbd as *mut SwkbdState).cast(), std::mem::size_of::() as _, 0, )