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
d7aea962
Commit
d7aea962
authored
Dec 13, 2000
by
Ian Pilcher
Committed by
Alexandre Julliard
Dec 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed FILEDLG95_OnOpen to "double terminate" the returned string if
OFN_ALLOWMULTISELECT is set.
parent
751625e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
filedlg95.c
dlls/commdlg/filedlg95.c
+7
-2
No files found.
dlls/commdlg/filedlg95.c
View file @
d7aea962
...
...
@@ -1493,13 +1493,18 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
}
}
/* Check that size size of the file does not exceed buffer size */
if
(
strlen
(
lpstrPathAndFile
)
<
fodInfos
->
ofnInfos
->
nMaxFile
)
/* Check that the size of the file does not exceed buffer size.
(Allow for extra \0 if OFN_MULTISELECT is set.) */
if
(
strlen
(
lpstrPathAndFile
)
<
fodInfos
->
ofnInfos
->
nMaxFile
-
((
fodInfos
->
ofnInfos
->
Flags
&
OFN_ALLOWMULTISELECT
)
?
1
:
0
))
{
LPSTR
lpszTemp
;
/* fill destination buffer */
strcpy
(
fodInfos
->
ofnInfos
->
lpstrFile
,
lpstrPathAndFile
);
if
(
fodInfos
->
ofnInfos
->
Flags
&
OFN_ALLOWMULTISELECT
)
fodInfos
->
ofnInfos
->
lpstrFile
[
strlen
(
fodInfos
->
ofnInfos
->
lpstrFile
)
+
1
]
=
'\0'
;
/* set filename offset */
lpszTemp
=
COMDLG32_PathFindFileNameA
(
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