Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bdaf2e98
Commit
bdaf2e98
authored
Jul 27, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Use a helper to detect the need for win16 looks.
parent
442b3441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
24 deletions
+10
-24
filedlg.c
dlls/comdlg32/filedlg.c
+10
-24
No files found.
dlls/comdlg32/filedlg.c
View file @
bdaf2e98
...
...
@@ -4207,6 +4207,12 @@ static BOOL GetFileName31W(LPOPENFILENAMEW lpofn, /* address of structure with d
return
bRet
;
}
static
inline
BOOL
is_win16_looks
(
DWORD
flags
)
{
return
(
flags
&
(
OFN_ALLOWMULTISELECT
|
OFN_ENABLEHOOK
|
OFN_ENABLETEMPLATE
)
&&
!
(
flags
&
OFN_EXPLORER
));
}
/* ------------------ APIs ---------------------- */
/***********************************************************************
...
...
@@ -4222,18 +4228,13 @@ static BOOL GetFileName31W(LPOPENFILENAMEW lpofn, /* address of structure with d
BOOL
WINAPI
GetOpenFileNameA
(
LPOPENFILENAMEA
ofn
)
/* [in/out] address of init structure */
{
BOOL
win16look
=
FALSE
;
TRACE
(
"flags %08x
\n
"
,
ofn
->
Flags
);
/* OFN_FILEMUSTEXIST implies OFN_PATHMUSTEXIST */
if
(
ofn
->
Flags
&
OFN_FILEMUSTEXIST
)
ofn
->
Flags
|=
OFN_PATHMUSTEXIST
;
if
(
ofn
->
Flags
&
(
OFN_ALLOWMULTISELECT
|
OFN_ENABLEHOOK
|
OFN_ENABLETEMPLATE
))
win16look
=
(
ofn
->
Flags
&
OFN_EXPLORER
)
?
FALSE
:
TRUE
;
if
(
win16look
)
if
(
is_win16_looks
(
ofn
->
Flags
))
return
GetFileName31A
(
ofn
,
OPEN_DIALOG
);
else
return
GetFileDialog95A
(
ofn
,
OPEN_DIALOG
);
...
...
@@ -4252,18 +4253,13 @@ BOOL WINAPI GetOpenFileNameA(
BOOL
WINAPI
GetOpenFileNameW
(
LPOPENFILENAMEW
ofn
)
/* [in/out] address of init structure */
{
BOOL
win16look
=
FALSE
;
TRACE
(
"flags %08x
\n
"
,
ofn
->
Flags
);
/* OFN_FILEMUSTEXIST implies OFN_PATHMUSTEXIST */
if
(
ofn
->
Flags
&
OFN_FILEMUSTEXIST
)
ofn
->
Flags
|=
OFN_PATHMUSTEXIST
;
if
(
ofn
->
Flags
&
(
OFN_ALLOWMULTISELECT
|
OFN_ENABLEHOOK
|
OFN_ENABLETEMPLATE
))
win16look
=
(
ofn
->
Flags
&
OFN_EXPLORER
)
?
FALSE
:
TRUE
;
if
(
win16look
)
if
(
is_win16_looks
(
ofn
->
Flags
))
return
GetFileName31W
(
ofn
,
OPEN_DIALOG
);
else
return
GetFileDialog95W
(
ofn
,
OPEN_DIALOG
);
...
...
@@ -4283,12 +4279,7 @@ BOOL WINAPI GetOpenFileNameW(
BOOL
WINAPI
GetSaveFileNameA
(
LPOPENFILENAMEA
ofn
)
/* [in/out] address of init structure */
{
BOOL
win16look
=
FALSE
;
if
(
ofn
->
Flags
&
(
OFN_ALLOWMULTISELECT
|
OFN_ENABLEHOOK
|
OFN_ENABLETEMPLATE
))
win16look
=
(
ofn
->
Flags
&
OFN_EXPLORER
)
?
FALSE
:
TRUE
;
if
(
win16look
)
if
(
is_win16_looks
(
ofn
->
Flags
))
return
GetFileName31A
(
ofn
,
SAVE_DIALOG
);
else
return
GetFileDialog95A
(
ofn
,
SAVE_DIALOG
);
...
...
@@ -4307,12 +4298,7 @@ BOOL WINAPI GetSaveFileNameA(
BOOL
WINAPI
GetSaveFileNameW
(
LPOPENFILENAMEW
ofn
)
/* [in/out] address of init structure */
{
BOOL
win16look
=
FALSE
;
if
(
ofn
->
Flags
&
(
OFN_ALLOWMULTISELECT
|
OFN_ENABLEHOOK
|
OFN_ENABLETEMPLATE
))
win16look
=
(
ofn
->
Flags
&
OFN_EXPLORER
)
?
FALSE
:
TRUE
;
if
(
win16look
)
if
(
is_win16_looks
(
ofn
->
Flags
))
return
GetFileName31W
(
ofn
,
SAVE_DIALOG
);
else
return
GetFileDialog95W
(
ofn
,
SAVE_DIALOG
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment