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
bd0fe7d2
Commit
bd0fe7d2
authored
Nov 01, 2010
by
Eryk Wieliczko
Committed by
Alexandre Julliard
Nov 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: GetSaveFileName: Don't append .* extension.
parent
a7cf4d16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
filedlg.c
dlls/comdlg32/filedlg.c
+12
-6
No files found.
dlls/comdlg32/filedlg.c
View file @
bd0fe7d2
...
...
@@ -2474,14 +2474,11 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
/* if no extension is specified with file name, then */
/* attach the extension from file filter or default one */
WCHAR
*
filterExt
=
NULL
;
const
WCHAR
*
filterExt
=
NULL
;
LPWSTR
lpstrFilter
=
NULL
;
static
const
WCHAR
szwDot
[]
=
{
'.'
,
0
};
int
PathLength
=
lstrlenW
(
lpstrPathAndFile
);
/* Attach the dot*/
lstrcatW
(
lpstrPathAndFile
,
szwDot
);
/*Get the file extension from file type filter*/
lpstrFilter
=
(
LPWSTR
)
CBGetItemDataPtr
(
fodInfos
->
DlgInfos
.
hwndFileTypeCB
,
fodInfos
->
ofnInfos
->
nFilterIndex
-
1
);
...
...
@@ -2490,9 +2487,18 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
filterExt
=
PathFindExtensionW
(
lpstrFilter
);
if
(
filterExt
&&
*
filterExt
)
/* attach the file extension from file type filter*/
lstrcatW
(
lpstrPathAndFile
,
filterExt
+
1
)
;
filterExt
=
filterExt
+
1
;
else
if
(
fodInfos
->
defext
)
/* attach the default file extension*/
lstrcatW
(
lpstrPathAndFile
,
fodInfos
->
defext
);
filterExt
=
fodInfos
->
defext
;
/* If extension is .*, ignore it */
if
(
filterExt
[
0
]
!=
'*'
)
{
/* Attach the dot*/
lstrcatW
(
lpstrPathAndFile
,
szwDot
);
/* Attach the extension */
lstrcatW
(
lpstrPathAndFile
,
filterExt
);
}
/* In Open dialog: if file does not exist try without extension */
if
(
!
(
fodInfos
->
DlgInfos
.
dwDlgProp
&
FODPROP_SAVEDLG
)
&&
!
PathFileExistsW
(
lpstrPathAndFile
))
...
...
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