http://bugs.winehq.org/show_bug.cgi?id=6829
Summary: COMDLG32: wrong return value of CommDlgExtendedError after GetOpenFileName Product: Wine Version: 0.9.26. Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: wine-comctl32 AssignedTo: wine-bugs@winehq.org ReportedBy: oberon@wildwein.de CC: oberon@wildwein.de
When the GetOpenFileName dialog is "Cancel"led a subsequent call to CommDlgExtendedError returns 4104 instead of 0
Platform SDK says:
CommDlgExtendedError Function
The CommDlgExtendedError function returns a common dialog box error code. This code indicates the most recent error to occur during the execution of one of the common dialog box functions. These error codes are defined in Cderr.h.
Syntax
DWORD CommDlgExtendedError(VOID); Return Value
If the most recent call to a common dialog box function succeeded, the return value is undefined.
If the common dialog box function returned FALSE because the user closed or canceled the dialog box, the return value is zero. Otherwise, the return value is a nonzero error code. For more information, see the following Remarks section.