[PATCH] COMDLG32_SetCommDlgExtendedError
gerard patel
gerard.patel at asi.fr
Fri Mar 2 14:57:41 CST 2001
In spite of what the 'official' doc says, the error code is defined when
a function like GetOpenFileName returns no error; the error code is
set to 0, and an app like the demo version of statview (www.statview.com)
relies on it, not displaying the correct version of the dialog box when
searching for its data file.
ChangeLog:
* dlls/commdlg/filedlg.c
Initializes the return error code to 0 for common dialog file functions
-------------- next part --------------
Index: dlls/commdlg/filedlg.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/filedlg.c,v
retrieving revision 1.43
diff -u -r1.43 filedlg.c
--- dlls/commdlg/filedlg.c 2001/01/22 02:13:58 1.43
+++ dlls/commdlg/filedlg.c 2001/03/02 20:49:21
@@ -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))
{
-------------- next part --------------
More information about the wine-patches
mailing list