http://bugs.winehq.org/show_bug.cgi?id=6829
------- Additional Comments From focht@gmx.net 2007-16-03 19:32 ------- Hello,
windows GetOpenFileName() resets the extended error before calling real file dialog stuff. Any subsequent error (resource loader, filesystem i/o) overwrites the initial errorcode reset (with value != 0). This is how its implemented on windows. Believe it or not...
In wine reset using COMDLG32_SetCommDlgExtendedError(0) in GetOpenFileNameA/W() before calling any stuff. Same applies to GetSaveFileNameA/W().
Of course this doesnt "heal" the 4104 (PDERR_NODEFAULTPRN) error because it's probably occurring within file dialog handling code thus overwriting inital reset. This works as intended.
Regards