Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0a5b6c85
Commit
0a5b6c85
authored
Nov 02, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Nov 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Implement OFN_CREATEPROMPT checking.
parent
deadc6cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
filedlg.c
dlls/comdlg32/filedlg.c
+20
-2
No files found.
dlls/comdlg32/filedlg.c
View file @
0a5b6c85
...
...
@@ -36,7 +36,7 @@
*
* FIXME: add to recent docs
*
* FIXME: flags not implemented: OFN_
CREATEPROMPT, OFN_
DONTADDTORECENT,
* FIXME: flags not implemented: OFN_DONTADDTORECENT,
* OFN_ENABLEINCLUDENOTIFY, OFN_ENABLESIZING,
* OFN_NODEREFERENCELINKS, OFN_NOREADONLYRETURN,
* OFN_NOTESTFILECREATE, OFN_USEMONIKERS
...
...
@@ -83,7 +83,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
commdlg
);
#define UNIMPLEMENTED_FLAGS \
(OFN_
CREATEPROMPT | OFN_
DONTADDTORECENT |\
(OFN_DONTADDTORECENT |\
OFN_ENABLEINCLUDENOTIFY | OFN_ENABLESIZING |\
OFN_NODEREFERENCELINKS | OFN_NOREADONLYRETURN |\
OFN_NOTESTFILECREATE
/*| OFN_USEMONIKERS*/
)
...
...
@@ -2118,6 +2118,24 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
}
}
/* In Open dialog: check if it should be created if it doesn't exist */
if
(
!
(
fodInfos
->
DlgInfos
.
dwDlgProp
&
FODPROP_SAVEDLG
)
&&
fodInfos
->
ofnInfos
->
Flags
&
OFN_CREATEPROMPT
&&
!
PathFileExistsW
(
lpstrPathAndFile
))
{
WCHAR
lpstrCreate
[
100
];
int
answer
;
LoadStringW
(
COMDLG32_hInstance
,
IDS_CREATEFILE
,
lpstrCreate
,
100
);
answer
=
MessageBoxW
(
hwnd
,
lpstrCreate
,
fodInfos
->
title
,
MB_YESNO
|
MB_ICONEXCLAMATION
);
if
(
answer
==
IDNO
)
{
ret
=
FALSE
;
goto
ret
;
}
}
/* Check that the size of the file does not exceed buffer size.
(Allow for extra \0 if OFN_MULTISELECT is set.) */
if
(
lstrlenW
(
lpstrPathAndFile
)
<
fodInfos
->
ofnInfos
->
nMaxFile
-
...
...
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