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
a77c0ebc
Commit
a77c0ebc
authored
Jan 28, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Jan 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: The attributes is not an array, so don't label it as such.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
805b5e36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+8
-8
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
a77c0ebc
...
...
@@ -1123,24 +1123,24 @@ static HRESULT WINAPI ShellFolder2_CreateViewObject(IShellFolder2* iface, HWND h
}
static
HRESULT
WINAPI
ShellFolder2_GetAttributesOf
(
IShellFolder2
*
iface
,
UINT
cidl
,
LPCITEMIDLIST
*
apidl
,
SFGAOF
*
rgfInOut
)
LPCITEMIDLIST
*
apidl
,
SFGAOF
*
attrs
)
{
UnixFolder
*
This
=
impl_from_IShellFolder2
(
iface
);
HRESULT
hr
=
S_OK
;
TRACE
(
"(%p)->(%u %p %p)
\n
"
,
This
,
cidl
,
apidl
,
rgfInOut
);
TRACE
(
"(%p)->(%u %p %p)
\n
"
,
This
,
cidl
,
apidl
,
attrs
);
if
(
!
rgfInOut
||
(
cidl
&&
!
apidl
))
if
(
!
attrs
||
(
cidl
&&
!
apidl
))
return
E_INVALIDARG
;
if
(
cidl
==
0
)
{
*
rgfInOut
&=
This
->
m_dwAttributes
;
*
attrs
&=
This
->
m_dwAttributes
;
}
else
{
char
szAbsolutePath
[
FILENAME_MAX
],
*
pszRelativePath
;
UINT
i
;
*
rgfInOut
=
SFGAO_CANCOPY
|
SFGAO_CANMOVE
|
SFGAO_CANLINK
|
SFGAO_CANRENAME
|
SFGAO_CANDELETE
|
SFGAO_HASPROPSHEET
|
SFGAO_DROPTARGET
|
SFGAO_FILESYSTEM
;
*
attrs
=
SFGAO_CANCOPY
|
SFGAO_CANMOVE
|
SFGAO_CANLINK
|
SFGAO_CANRENAME
|
SFGAO_CANDELETE
|
SFGAO_HASPROPSHEET
|
SFGAO_DROPTARGET
|
SFGAO_FILESYSTEM
;
lstrcpyA
(
szAbsolutePath
,
This
->
m_pszPath
);
pszRelativePath
=
szAbsolutePath
+
lstrlenA
(
szAbsolutePath
);
for
(
i
=
0
;
i
<
cidl
;
i
++
)
{
...
...
@@ -1149,12 +1149,12 @@ static HRESULT WINAPI ShellFolder2_GetAttributesOf(IShellFolder2* iface, UINT ci
if
(
!
UNIXFS_filename_from_shitemid
(
apidl
[
i
],
pszRelativePath
))
return
E_INVALIDARG
;
if
(
!
(
dos_name
=
wine_get_dos_file_name
(
szAbsolutePath
)))
*
rgfInOut
&=
~
SFGAO_FILESYSTEM
;
*
attrs
&=
~
SFGAO_FILESYSTEM
;
else
HeapFree
(
GetProcessHeap
(),
0
,
dos_name
);
}
if
(
_ILIsFolder
(
apidl
[
i
]))
*
rgfInOut
|=
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSANCESTOR
;
*
attrs
|=
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSANCESTOR
;
}
}
...
...
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