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
ab7e613f
Commit
ab7e613f
authored
Sep 03, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle SHGDFIL_FINDDATA correctly in SHGetDataFromIDListW.
parent
8e5c72e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
pidl.c
dlls/shell32/pidl.c
+25
-3
No files found.
dlls/shell32/pidl.c
View file @
ab7e613f
...
...
@@ -842,8 +842,10 @@ HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int n
CHAR
pszPath
[
MAX_PATH
];
HANDLE
handle
;
if
(
len
<
sizeof
(
WIN32_FIND_DATAA
))
if
(
len
<
sizeof
(
WIN32_FIND_DATAA
))
{
ERR_
(
shell
)(
"%d does not find sizeof(finddata)
\n
"
,
len
);
return
E_INVALIDARG
;
}
SHGetPathFromIDListA
(
pidl
,
pszPath
);
...
...
@@ -869,8 +871,29 @@ HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, int n
*/
HRESULT
WINAPI
SHGetDataFromIDListW
(
LPSHELLFOLDER
psf
,
LPCITEMIDLIST
pidl
,
int
nFormat
,
LPVOID
dest
,
int
len
)
{
FIXME_
(
shell
)(
"sf=%p pidl=%p 0x%04x %p 0x%04x stub
\n
"
,
psf
,
pidl
,
nFormat
,
dest
,
len
);
if
(
!
psf
||
!
dest
)
return
E_INVALIDARG
;
switch
(
nFormat
)
{
case
SHGDFIL_FINDDATA
:
{
WIN32_FIND_DATAW
*
pfd
=
dest
;
WCHAR
pszPath
[
MAX_PATH
];
HANDLE
handle
;
if
(
len
<
sizeof
(
WIN32_FIND_DATAW
))
{
ERR_
(
shell
)(
"%d does not find sizeof(finddata)
\n
"
,
len
);
return
E_INVALIDARG
;
}
SHGetPathFromIDListW
(
pidl
,
pszPath
);
if
((
handle
=
FindFirstFileW
(
pszPath
,
pfd
)))
FindClose
(
handle
);
}
return
NOERROR
;
default
:
/* fallthrough */
break
;
}
FIXME_
(
shell
)(
"(sf=%p pidl=%p nFormat=0x%04x %p 0x%04x), unhandled.
\n
"
,
psf
,
pidl
,
nFormat
,
dest
,
len
);
return
SHGetDataFromIDListA
(
psf
,
pidl
,
nFormat
,
dest
,
len
);
}
...
...
@@ -1506,4 +1529,3 @@ BOOL WINAPI _ILGetExtension (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
return
TRUE
;
}
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