mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Initialize the return error code to 0 for common dialog file
functions.
This commit is contained in:
parent
3266b88746
commit
726c63b945
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user