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
7f363820
Commit
7f363820
authored
Apr 09, 2023
by
Jactry Zeng
Committed by
Alexandre Julliard
May 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Implement IFolderView2_{Get, Set}CurrentFolderFlags().
parent
c8209830
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
shlview.c
dlls/shell32/shlview.c
+13
-6
shlview.c
dlls/shell32/tests/shlview.c
+7
-7
No files found.
dlls/shell32/shlview.c
View file @
7f363820
...
...
@@ -2945,16 +2945,23 @@ static HRESULT WINAPI FolderView2_SetText(IFolderView2 *iface, FVTEXTTYPE type,
static
HRESULT
WINAPI
FolderView2_SetCurrentFolderFlags
(
IFolderView2
*
iface
,
DWORD
mask
,
DWORD
flags
)
{
IShellViewImpl
*
This
=
impl_from_IFolderView2
(
iface
);
FIXME
(
"(%p)->(0x%08lx 0x%08lx), stub
\n
"
,
This
,
mask
,
flags
);
return
E_NOTIMPL
;
IShellViewImpl
*
shellview
=
impl_from_IFolderView2
(
iface
);
TRACE
(
"folder view %p, mask %#lx, flags %#lx.
\n
"
,
iface
,
mask
,
flags
);
shellview
->
FolderSettings
.
fFlags
=
(
shellview
->
FolderSettings
.
fFlags
&
~
mask
)
|
(
flags
&
mask
);
return
S_OK
;
}
static
HRESULT
WINAPI
FolderView2_GetCurrentFolderFlags
(
IFolderView2
*
iface
,
DWORD
*
flags
)
{
IShellViewImpl
*
This
=
impl_from_IFolderView2
(
iface
);
FIXME
(
"(%p)->(%p), stub
\n
"
,
This
,
flags
);
return
E_NOTIMPL
;
IShellViewImpl
*
shellview
=
impl_from_IFolderView2
(
iface
);
TRACE
(
"folder view %p, flags %p.
\n
"
,
iface
,
flags
);
if
(
flags
)
*
flags
=
shellview
->
FolderSettings
.
fFlags
;
return
S_OK
;
}
static
HRESULT
WINAPI
FolderView2_GetSortColumnCount
(
IFolderView2
*
iface
,
int
*
columns
)
...
...
dlls/shell32/tests/shlview.c
View file @
7f363820
...
...
@@ -1533,24 +1533,24 @@ static void test_folder_flags(void)
}
hr
=
IFolderView2_GetCurrentFolderFlags
(
folderview
,
NULL
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
flags
=
0xdeadbeef
;
hr
=
IFolderView2_GetCurrentFolderFlags
(
folderview
,
&
flags
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
flags
==
FWF_USESEARCHFOLDER
,
"Got flags %#lx.
\n
"
,
flags
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
flags
==
FWF_USESEARCHFOLDER
,
"Got flags %#lx.
\n
"
,
flags
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
++
i
)
{
hr
=
IFolderView2_SetCurrentFolderFlags
(
folderview
,
tests
[
i
].
mask
,
tests
[
i
].
flags
);
todo_wine
ok
(
hr
==
S_OK
,
"Test %u: Got hr %#lx.
\n
"
,
i
,
hr
);
ok
(
hr
==
S_OK
,
"Test %u: Got hr %#lx.
\n
"
,
i
,
hr
);
flags
=
0xdeadbeef
;
hr
=
IFolderView2_GetCurrentFolderFlags
(
folderview
,
&
flags
);
todo_wine
ok
(
hr
==
S_OK
,
"Test %u: Got hr %#lx.
\n
"
,
i
,
hr
);
todo_wine
ok
(
flags
==
tests
[
i
].
expected
,
"Test %u: Got flags %#lx.
\n
"
,
i
,
flags
);
ok
(
hr
==
S_OK
,
"Test %u: Got hr %#lx.
\n
"
,
i
,
hr
);
ok
(
flags
==
tests
[
i
].
expected
,
"Test %u: Got flags %#lx.
\n
"
,
i
,
flags
);
hr
=
IFolderView2_SetCurrentFolderFlags
(
folderview
,
~
FWF_NONE
,
FWF_NONE
);
todo_wine
ok
(
hr
==
S_OK
,
"Test %u: Got hr %#lx.
\n
"
,
i
,
hr
);
ok
(
hr
==
S_OK
,
"Test %u: Got hr %#lx.
\n
"
,
i
,
hr
);
}
IFolderView2_Release
(
folderview
);
...
...
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