Initialize the return error code to 0 for common dialog file functions.
diff --git a/dlls/commdlg/filedlg.c b/dlls/commdlg/filedlg.c index bd8982f..9aa2a5f 100644 --- a/dlls/commdlg/filedlg.c +++ b/dlls/commdlg/filedlg.c
@@ -1563,7 +1563,7 @@ LPOPENFILENAMEA ofn) /* [in/out] address of init structure */ { BOOL newlook = TRUE; /* FIXME: TWEAK_WineLook */ - + COMDLG32_SetCommDlgExtendedError(0); /* some flags don't allow to match the TWEAK_WineLook */ if (ofn->Flags & (OFN_ALLOWMULTISELECT|OFN_ENABLEHOOK|OFN_ENABLETEMPLATE)) { @@ -1594,7 +1594,7 @@ LPOPENFILENAMEW ofn) /* [in/out] address of init structure */ { BOOL newlook = TRUE; /* FIXME: TWEAK_WineLook */ - + COMDLG32_SetCommDlgExtendedError(0); /* some flags don't allow to match the TWEAK_WineLook */ if (ofn->Flags & (OFN_ALLOWMULTISELECT|OFN_ENABLEHOOK|OFN_ENABLETEMPLATE)) { @@ -1625,7 +1625,7 @@ LPOPENFILENAMEA ofn) /* [in/out] address of init structure */ { BOOL newlook = TRUE; /* FIXME: TWEAK_WineLook */ - + COMDLG32_SetCommDlgExtendedError(0); /* some flags don't allow to match the TWEAK_WineLook */ if (ofn->Flags & (OFN_ALLOWMULTISELECT|OFN_ENABLEHOOK|OFN_ENABLETEMPLATE)) { @@ -1656,7 +1656,7 @@ LPOPENFILENAMEW ofn) /* [in/out] address of init structure */ { BOOL newlook = TRUE; /* FIXME: TWEAK_WineLook */ - + COMDLG32_SetCommDlgExtendedError(0); /* some flags don't allow to match the TWEAK_WineLook */ if (ofn->Flags & (OFN_ALLOWMULTISELECT|OFN_ENABLEHOOK|OFN_ENABLETEMPLATE)) {