From 1b84356118b7a9483328b9fd37fa9af16759ce4e Mon Sep 17 00:00:00 2001 From: dotnal Date: Wed, 10 Jun 2020 01:30:24 +1000 Subject: [PATCH] fix winspool printer devmode definition the printer_info field for PRINTER_INFO_9W was incorrectly using a non-wide character set for pDevMode --- src/um/winspool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/um/winspool.rs b/src/um/winspool.rs index a4e3302a1..c6796caf3 100644 --- a/src/um/winspool.rs +++ b/src/um/winspool.rs @@ -160,7 +160,7 @@ STRUCT!{struct PRINTER_INFO_9A { pub type PPRINTER_INFO_9A = *mut PRINTER_INFO_9A; pub type LPPRINTER_INFO_9A = *mut PRINTER_INFO_9A; STRUCT!{struct PRINTER_INFO_9W { - pDevMode: LPDEVMODEA, + pDevMode: LPDEVMODEW, }} pub type PPRINTER_INFO_9W = *mut PRINTER_INFO_9W; pub type LPPRINTER_INFO_9W = *mut PRINTER_INFO_9W;