Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
726c63b9
Commit
726c63b9
authored
24 years ago
by
Gerard Patel
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Initialize the return error code to 0 for common dialog file
functions.
parent
3266b887
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/commdlg/filedlg.c
+4
-4
4 additions, 4 deletions
dlls/commdlg/filedlg.c
with
4 additions
and
4 deletions
dlls/commdlg/filedlg.c
+
4
−
4
View file @
726c63b9
...
...
@@ -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
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment