On Tue Dec 6 11:59:24 2022 +0000, Huw Davies wrote:
Sorry, missed this earlier, but shouldn't this be:
swprintf(name, ARRAY_SIZE(name), L"%s, Port %s", printer->name, port_name);
Port takes only port name. I have tested it with wine's winprint print processor copied to Windows.
I was testing it with real printer and Black Ice Printer (virtual PDF printer that uses v3 driver, very convenient for testing). In case of Black Ice Printer, the port is called IcePortPUR: and OpenPrintProcessor was called with following paramters: OpenPrintProcessor L"\DESKTOP-V8RFDQ0\IcePortPUR:, Port" 0000000005CBEA90