mirror of
https://github.com/tauri-apps/tao.git
synced 2026-01-31 00:35:16 +01:00
chore: remove duplicate PCSTR (#897)
This commit is contained in:
@@ -257,7 +257,6 @@ impl CursorIcon {
|
||||
pub(super) fn get_function_impl(library: &str, function: &str) -> FARPROC {
|
||||
let library = encode_wide(library);
|
||||
assert_eq!(function.chars().last(), Some('\0'));
|
||||
let function = PCSTR::from_raw(function.as_ptr());
|
||||
|
||||
// Library names we will use are ASCII so we can use the A version to avoid string conversion.
|
||||
let module = unsafe { LoadLibraryW(PCWSTR::from_raw(library.as_ptr())) }.unwrap_or_default();
|
||||
|
||||
Reference in New Issue
Block a user