Commit 726c63b9 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Initialize the return error code to 0 for common dialog file

functions.
parent 3266b887
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment