https://bugs.winehq.org/show_bug.cgi?id=52996
Bug ID: 52996 Summary: comdlg32:printdlg fails when OneNote is installed Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: comdlg32 Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
comdlg32:printdlg fails on cw-gtx560 and cw-rx460 when running Windows 1809 and 1909:
printdlg.c:198: driver 'winspool' device 'OneNote' port 'Microsoft.Office.OneNote_16001.11629.20028.0_x64__8wekyb3d8bbwe_microsoft.onenoteim_S-1-5-21-2735375161-1667520140-535807745-1002' printdlg.c:215: Test failed: got 0 with 2 and 00000000 for '' (expected '>1' and '!= NULL') printdlg.c:220: Test failed: got driver 'winspool' (expected '')
https://test.winehq.org/data/tests/comdlg32:printdlg.html
It turns out these test configurations are the only ones that have this 'OneNote' line. All the others have the following trace instead:
printdlg.c:198: driver 'winspool' device 'Microsoft Print to PDF' port 'PORTPROMPT:'
So my understanding is that 'Microsoft Print to PDF' is the default printer for all the machines except for these four where "OneNote" is the default instead. I don't know how "OneNote" came to be the default on these machines. I don't think it was intentional on my part. Rather I suspect there was some randomness in the order in which some Windows updates were installed or something like that.
For reference the cw-rx460-1909 machine has the following printers: * Fax * Microsoft Print to PDF --> This seems to be the default printer on all other machines. * Microsoft XPS Document Writer * OneNote --> This is the one that's selected by default in notepad, so presumably the default printer. (The Windows 10 1909 GUI does not make that really clear anywhere else that I could find)
So it seems like the test should be adjusted to not fail with the OneNote printer. That or that check should be skipped?
https://bugs.winehq.org/show_bug.cgi?id=52996
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine.dev@web.de Keywords| |source, testcase