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
bc42b2e1
Commit
bc42b2e1
authored
Nov 29, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CFM_GETSPEC always returns a space-separated list.
parent
74699730
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
filedlg.c
dlls/commdlg/filedlg.c
+9
-7
filedlgbrowser.h
dlls/commdlg/filedlgbrowser.h
+1
-1
No files found.
dlls/commdlg/filedlg.c
View file @
bc42b2e1
...
...
@@ -841,7 +841,7 @@ HRESULT FILEDLG95_Handle_GetFilePath(HWND hwnd, DWORD size, LPVOID buffer)
/* get path and filenames */
SHGetPathFromIDListW
(
fodInfos
->
ShellInfos
.
pidlAbsCurrent
,
lpstrCurrentDir
);
n
=
FILEDLG95_FILENAME_GetFileNames
(
hwnd
,
&
lpstrFileList
,
&
sizeUsed
);
n
=
FILEDLG95_FILENAME_GetFileNames
(
hwnd
,
&
lpstrFileList
,
&
sizeUsed
,
' '
);
TRACE
(
"path >%s< filespec >%s< %d files
\n
"
,
debugstr_w
(
lpstrCurrentDir
),
debugstr_w
(
lpstrFileList
),
n
);
...
...
@@ -897,7 +897,7 @@ HRESULT FILEDLG95_Handle_GetFileSpec(HWND hwnd, DWORD size, LPVOID buffer)
TRACE
(
"CDM_GETSPEC:
\n
"
);
FILEDLG95_FILENAME_GetFileNames
(
hwnd
,
&
lpstrFileList
,
&
sizeUsed
);
FILEDLG95_FILENAME_GetFileNames
(
hwnd
,
&
lpstrFileList
,
&
sizeUsed
,
' '
);
if
(
fodInfos
->
unicode
)
{
LPWSTR
bufW
=
buffer
;
...
...
@@ -1709,7 +1709,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
TRACE
(
"hwnd=%p
\n
"
,
hwnd
);
/* get the files from the edit control */
nFileCount
=
FILEDLG95_FILENAME_GetFileNames
(
hwnd
,
&
lpstrFileList
,
&
sizeUsed
);
nFileCount
=
FILEDLG95_FILENAME_GetFileNames
(
hwnd
,
&
lpstrFileList
,
&
sizeUsed
,
'\0'
);
/* try if the user selected a folder in the shellview */
if
(
nFileCount
==
0
)
...
...
@@ -3029,9 +3029,11 @@ static HRESULT COMDLG32_StrRetToStrNA (LPVOID dest, DWORD len, LPSTRRET src, LPI
/***********************************************************************
* FILEDLG95_FILENAME_GetFileNames
*
* copies the filenames to a 0-delimited string list (A\0B\0C\0\0)
* Copies the filenames to a delimited string list.
* The delimiter is specified by the parameter 'separator',
* usually either a space or a nul
*/
int
FILEDLG95_FILENAME_GetFileNames
(
HWND
hwnd
,
LPWSTR
*
lpstrFileList
,
UINT
*
sizeUsed
)
int
FILEDLG95_FILENAME_GetFileNames
(
HWND
hwnd
,
LPWSTR
*
lpstrFileList
,
UINT
*
sizeUsed
,
char
separator
)
{
FileOpenDlgInfos
*
fodInfos
=
(
FileOpenDlgInfos
*
)
GetPropA
(
hwnd
,
FileOpenDlgInfosStr
);
UINT
nStrCharCount
=
0
;
/* index in src buffer */
...
...
@@ -3054,7 +3056,7 @@ int FILEDLG95_FILENAME_GetFileNames (HWND hwnd, LPWSTR * lpstrFileList, UINT * s
*
lpstrFileList
=
MemAlloc
(
(
nStrLen
+
2
)
*
sizeof
(
WCHAR
)
);
*
sizeUsed
=
0
;
/* build
0-
delimited file list from filenames */
/* build delimited file list from filenames */
while
(
nStrCharCount
<=
nStrLen
)
{
if
(
lpstrEdit
[
nStrCharCount
]
==
'"'
)
...
...
@@ -3066,7 +3068,7 @@ int FILEDLG95_FILENAME_GetFileNames (HWND hwnd, LPWSTR * lpstrFileList, UINT * s
(
*
sizeUsed
)
++
;
nStrCharCount
++
;
}
(
*
lpstrFileList
)[
nFileIndex
++
]
=
'\0'
;
(
*
lpstrFileList
)[
nFileIndex
++
]
=
separator
;
(
*
sizeUsed
)
++
;
nFileCount
++
;
}
...
...
dlls/commdlg/filedlgbrowser.h
View file @
bc42b2e1
...
...
@@ -161,6 +161,6 @@ BOOL IsPidlFolder (LPSHELLFOLDER psf, LPCITEMIDLIST pidl);
/* Functions used by the EDIT box */
void
FILEDLG95_FILENAME_FillFromSelection
(
HWND
hwnd
);
int
FILEDLG95_FILENAME_GetFileNames
(
HWND
hwnd
,
LPWSTR
*
lpstrFileList
,
UINT
*
sizeUsed
);
int
FILEDLG95_FILENAME_GetFileNames
(
HWND
hwnd
,
LPWSTR
*
lpstrFileList
,
UINT
*
sizeUsed
,
char
separator
);
#endif
/*SHBROWSER_H*/
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