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
9ff68534
Commit
9ff68534
authored
Jul 30, 2014
by
David Hedberg
Committed by
Alexandre Julliard
Aug 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Return S_OK only if the flags matches the result exactly.
parent
67843453
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
shellitem.c
dlls/shell32/shellitem.c
+5
-0
shlfolder.c
dlls/shell32/tests/shlfolder.c
+1
-1
No files found.
dlls/shell32/shellitem.c
View file @
9ff68534
...
...
@@ -271,6 +271,11 @@ static HRESULT WINAPI ShellItem_GetAttributes(IShellItem2 *iface, SFGAOF sfgaoMa
ret
=
IShellFolder_GetAttributesOf
(
parent_folder
,
1
,
(
LPCITEMIDLIST
*
)
&
child_pidl
,
psfgaoAttribs
);
*
psfgaoAttribs
&=
sfgaoMask
;
IShellFolder_Release
(
parent_folder
);
if
(
sfgaoMask
==
*
psfgaoAttribs
)
return
S_OK
;
else
return
S_FALSE
;
}
return
ret
;
...
...
dlls/shell32/tests/shlfolder.c
View file @
9ff68534
...
...
@@ -3792,7 +3792,7 @@ static void test_ShellItemGetAttributes(void)
sfgao
=
0xdeadbeef
;
hr
=
IShellItem_GetAttributes
(
psi_file1
,
SFGAO_FOLDER
,
&
sfgao
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got 0x%08x
\n
"
,
hr
);
ok
(
sfgao
==
0
,
"Got 0x%08x
\n
"
,
sfgao
);
IShellItem_Release
(
psi_folder1
);
...
...
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