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
0ab07048
Commit
0ab07048
authored
Aug 03, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Aug 03, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only add "." separator in case a default file name extension does
exist.
parent
1d8ef194
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
filedlg95.c
dlls/commdlg/filedlg95.c
+9
-5
No files found.
dlls/commdlg/filedlg95.c
View file @
0ab07048
...
...
@@ -277,7 +277,7 @@ BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType)
LPSTR
lpstrSavDir
=
NULL
;
DWORD
dwFlags
=
0
;
/* Initiali
se FileOpenDlgInfos structure*/
/* Initiali
ze FileOpenDlgInfos structure */
fodInfos
=
(
FileOpenDlgInfos
*
)
MemAlloc
(
sizeof
(
FileOpenDlgInfos
));
ZeroMemory
(
fodInfos
,
sizeof
(
FileOpenDlgInfos
));
...
...
@@ -298,7 +298,7 @@ BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType)
dwFlags
=
ofn
->
Flags
;
ofn
->
Flags
=
ofn
->
Flags
|
OFN_WINE
;
/* Initiali
s
e the dialog property */
/* Initiali
z
e the dialog property */
fodInfos
->
DlgInfos
.
dwDlgProp
=
0
;
fodInfos
->
DlgInfos
.
hwndCustomDlg
=
(
HWND
)
NULL
;
...
...
@@ -397,7 +397,7 @@ BOOL WINAPI GetFileDialog95W(LPOPENFILENAMEW ofn,UINT iDlgType)
LPCWSTR
lpTemplateName
=
NULL
;
DWORD
dwFlags
;
/* Initiali
se FileOpenDlgInfos structure
*/
/* Initiali
ze FileOpenDlgInfos structure
*/
fodInfos
=
(
FileOpenDlgInfos
*
)
MemAlloc
(
sizeof
(
FileOpenDlgInfos
));
ZeroMemory
(
fodInfos
,
sizeof
(
FileOpenDlgInfos
));
...
...
@@ -1503,8 +1503,12 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
{
if
(
!
*
PathFindExtensionA
(
lpstrPathAndFile
))
{
strcat
(
lpstrPathAndFile
,
"."
);
strcat
(
lpstrPathAndFile
,
fodInfos
->
ofnInfos
->
lpstrDefExt
);
/* only add "." in case a default extension does exist */
if
(
*
fodInfos
->
ofnInfos
->
lpstrDefExt
!=
'\0'
)
{
strcat
(
lpstrPathAndFile
,
"."
);
strcat
(
lpstrPathAndFile
,
fodInfos
->
ofnInfos
->
lpstrDefExt
);
}
}
}
...
...
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