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
77c313b8
Commit
77c313b8
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: Set the stream and storage attributes where needed.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a77c0ebc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+4
-1
shlfolder.c
dlls/shell32/tests/shlfolder.c
+13
-0
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
77c313b8
...
...
@@ -1154,7 +1154,10 @@ static HRESULT WINAPI ShellFolder2_GetAttributesOf(IShellFolder2* iface, UINT ci
HeapFree
(
GetProcessHeap
(),
0
,
dos_name
);
}
if
(
_ILIsFolder
(
apidl
[
i
]))
*
attrs
|=
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSANCESTOR
;
*
attrs
|=
SFGAO_FOLDER
|
SFGAO_HASSUBFOLDER
|
SFGAO_FILESYSANCESTOR
|
SFGAO_STORAGEANCESTOR
|
SFGAO_STORAGE
;
else
*
attrs
|=
SFGAO_STREAM
;
}
}
...
...
dlls/shell32/tests/shlfolder.c
View file @
77c313b8
...
...
@@ -388,6 +388,14 @@ static void test_EnumObjects(IShellFolder *iFolder)
SFGAO_CAPABILITYMASK
|
SFGAO_FILESYSTEM
,
SFGAO_CAPABILITYMASK
|
SFGAO_FILESYSTEM
,
};
static
const
ULONG
full_attrs
[
5
]
=
{
SFGAO_CAPABILITYMASK
|
SFGAO_STORAGE
|
SFGAO_STORAGEANCESTOR
|
SFGAO_FILESYSTEM
|
SFGAO_FOLDER
|
SFGAO_FILESYSANCESTOR
,
SFGAO_CAPABILITYMASK
|
SFGAO_STORAGE
|
SFGAO_STORAGEANCESTOR
|
SFGAO_FILESYSTEM
|
SFGAO_FOLDER
|
SFGAO_FILESYSANCESTOR
,
SFGAO_CAPABILITYMASK
|
SFGAO_STREAM
|
SFGAO_FILESYSTEM
,
SFGAO_CAPABILITYMASK
|
SFGAO_STREAM
|
SFGAO_FILESYSTEM
,
SFGAO_CAPABILITYMASK
|
SFGAO_STREAM
|
SFGAO_FILESYSTEM
,
};
hr
=
IShellFolder_EnumObjects
(
iFolder
,
NULL
,
SHCONTF_FOLDERS
|
SHCONTF_NONFOLDERS
|
SHCONTF_INCLUDEHIDDEN
,
&
iEnumList
);
ok
(
hr
==
S_OK
,
"EnumObjects failed %08x
\n
"
,
hr
);
...
...
@@ -440,6 +448,11 @@ static void test_EnumObjects(IShellFolder *iFolder)
ok
(
flags
==
attrs
[
i
]
||
flags
==
(
attrs
[
i
]
&
~
SFGAO_FILESYSANCESTOR
),
/* Win9x, NT4 */
"GetAttributesOf[%i] got %08x, expected %08x
\n
"
,
i
,
flags
,
attrs
[
i
]);
flags
=
~
0u
;
hr
=
IShellFolder_GetAttributesOf
(
iFolder
,
1
,
(
LPCITEMIDLIST
*
)(
idlArr
+
i
),
&
flags
);
ok
(
hr
==
S_OK
,
"GetAttributesOf returns %08x
\n
"
,
hr
);
ok
((
flags
&
~
SFGAO_HASSUBFOLDER
)
==
full_attrs
[
i
],
"%d: got %08x expected %08x
\n
"
,
i
,
flags
,
full_attrs
[
i
]);
}
for
(
i
=
0
;
i
<
5
;
i
++
)
...
...
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