From 726c63b94541aba95632ad0e31dfb084b4425a22 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sat, 3 Mar 2001 00:18:14 +0000 Subject: [PATCH] Initialize the return error code to 0 for common dialog file functions. --- dlls/commdlg/filedlg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/commdlg/filedlg.c b/dlls/commdlg/filedlg.c index bd8982f1f9..9aa2a5f703 100644 --- a/dlls/commdlg/filedlg.c +++ b/dlls/commdlg/filedlg.c @@ -1563,7 +1563,7 @@ BOOL WINAPI GetOpenFileNameA( 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 @@ BOOL WINAPI GetOpenFileNameW( 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 @@ BOOL WINAPI GetSaveFileNameA( 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 @@ BOOL WINAPI GetSaveFileNameW( 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)) {