fix(windows): correct Winspool handle types
Some checks failed
Desktop Release / Bootstrap updater signing key (push) Has been cancelled
Desktop Release / Windows x64 NSIS (push) Has been cancelled
Desktop Release / Linux x64 DEB + AppImage (push) Has been cancelled
Desktop Release / Publish public desktop release (push) Has been cancelled
Some checks failed
Desktop Release / Bootstrap updater signing key (push) Has been cancelled
Desktop Release / Windows x64 NSIS (push) Has been cancelled
Desktop Release / Linux x64 DEB + AppImage (push) Has been cancelled
Desktop Release / Publish public desktop release (push) Has been cancelled
This commit is contained in:
parent
156668a959
commit
332e4c25e5
@ -844,10 +844,10 @@ fn forward_to_system_printer(printer: &str, bytes: &[u8]) -> (bool, Option<Strin
|
||||
}
|
||||
|
||||
let printer_name = wide(printer);
|
||||
let mut handle: PRINTER_HANDLE = null_mut();
|
||||
let mut handle = PRINTER_HANDLE { Value: null_mut() };
|
||||
|
||||
let opened = unsafe { OpenPrinterW(printer_name.as_ptr(), &mut handle, null()) };
|
||||
if opened == 0 || handle.is_null() {
|
||||
if opened == 0 || handle.Value.is_null() {
|
||||
return (
|
||||
false,
|
||||
Some(format!(
|
||||
@ -869,7 +869,7 @@ fn forward_to_system_printer(printer: &str, bytes: &[u8]) -> (bool, Option<Strin
|
||||
StartDocPrinterW(
|
||||
handle,
|
||||
1,
|
||||
(&doc as *const DOC_INFO_1W).cast::<u8>(),
|
||||
&doc as *const DOC_INFO_1W,
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user