Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
babd22b4
Commit
babd22b4
authored
Sep 27, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: System shellfolders don't implement GetDefaultColumn().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
48dfe437
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
88 additions
and
58 deletions
+88
-58
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+6
-6
recyclebin.c
dlls/shell32/recyclebin.c
+5
-5
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+4
-9
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+3
-9
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+6
-8
shfldr_netplaces.c
dlls/shell32/shfldr_netplaces.c
+4
-9
shfldr_printers.c
dlls/shell32/shfldr_printers.c
+5
-3
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+3
-9
shlfolder.c
dlls/shell32/tests/shlfolder.c
+52
-0
No files found.
dlls/shell32/cpanelfolder.c
View file @
babd22b4
...
...
@@ -724,17 +724,17 @@ static HRESULT WINAPI ISF_ControlPanel_fnEnumSearches(IShellFolder2 *iface,
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ISF_ControlPanel_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
dwRes
,
ULONG
*
pSort
,
ULONG
*
pDisplay
)
static
HRESULT
WINAPI
ISF_ControlPanel_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
sort
,
ULONG
*
display
)
{
ICPanelImpl
*
This
=
impl_from_IShellFolder2
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)
->(%#x %p %p)
\n
"
,
This
,
reserved
,
sort
,
display
);
if
(
pSort
)
*
pSort
=
0
;
if
(
pDisplay
)
*
pDisplay
=
0
;
return
S_OK
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ISF_ControlPanel_fnGetDefaultColumnState
(
IShellFolder2
*
iface
,
UINT
iColumn
,
DWORD
*
pcsFlags
)
{
...
...
dlls/shell32/recyclebin.c
View file @
babd22b4
...
...
@@ -580,13 +580,13 @@ static HRESULT WINAPI RecycleBin_EnumSearches(IShellFolder2 *iface, IEnumExtraSe
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
RecycleBin_GetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
dwReserved
,
ULONG
*
pSort
,
ULONG
*
pD
isplay
)
static
HRESULT
WINAPI
RecycleBin_GetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
sort
,
ULONG
*
d
isplay
)
{
RecycleBin
*
This
=
impl_from_IShellFolder2
(
iface
);
TRACE
(
"(%p, %x, %p, %p)
\n
"
,
This
,
dwReserved
,
pSort
,
pDisplay
);
*
pSort
=
0
;
*
pDisplay
=
0
;
return
S_OK
;
TRACE
(
"(%p)->(%#x, %p, %p)
\n
"
,
This
,
reserved
,
sort
,
display
)
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
RecycleBin_GetDefaultColumnState
(
IShellFolder2
*
iface
,
UINT
iColumn
,
SHCOLSTATEF
*
pcsFlags
)
...
...
dlls/shell32/shfldr_desktop.c
View file @
babd22b4
...
...
@@ -769,20 +769,15 @@ static HRESULT WINAPI ISF_Desktop_fnEnumSearches (IShellFolder2 *iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ISF_Desktop_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
pSort
,
ULONG
*
pDisplay
)
static
HRESULT
WINAPI
ISF_Desktop_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
sort
,
ULONG
*
display
)
{
IDesktopFolderImpl
*
This
=
impl_from_IShellFolder2
(
iface
);
TRACE
(
"(%p)->(%
d %p %p)
\n
"
,
This
,
reserved
,
pSort
,
pD
isplay
);
TRACE
(
"(%p)->(%
#x, %p, %p)
\n
"
,
This
,
reserved
,
sort
,
d
isplay
);
if
(
pSort
)
*
pSort
=
0
;
if
(
pDisplay
)
*
pDisplay
=
0
;
return
S_OK
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ISF_Desktop_fnGetDefaultColumnState
(
IShellFolder2
*
iface
,
UINT
iColumn
,
DWORD
*
pcsFlags
)
{
...
...
dlls/shell32/shfldr_fs.c
View file @
babd22b4
...
...
@@ -926,19 +926,13 @@ static HRESULT WINAPI IShellFolder_fnEnumSearches (IShellFolder2 * iface,
}
static
HRESULT
WINAPI
IShellFolder_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
dwRes
,
ULONG
*
pSort
,
ULONG
*
pDisplay
)
IShellFolder_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
sort
,
ULONG
*
display
)
{
IGenericSFImpl
*
This
=
impl_from_IShellFolder2
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
if
(
pSort
)
*
pSort
=
0
;
if
(
pDisplay
)
*
pDisplay
=
0
;
TRACE
(
"(%p)->(%#x, %p, %p)
\n
"
,
This
,
reserved
,
sort
,
display
);
return
S_OK
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
...
...
dlls/shell32/shfldr_mycomp.c
View file @
babd22b4
...
...
@@ -782,19 +782,17 @@ static HRESULT WINAPI ISF_MyComputer_fnEnumSearches (
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ISF_MyComputer_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
dwRes
,
ULONG
*
pSort
,
ULONG
*
pDisplay
)
static
HRESULT
WINAPI
ISF_MyComputer_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
sort
,
ULONG
*
display
)
{
IMyComputerFolderImpl
*
This
=
impl_from_IShellFolder2
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
TRACE
(
"(%p)->(%#x, %p, %p)
\n
"
,
This
,
reserved
,
sort
,
display
);
if
(
pSort
)
*
pSort
=
0
;
if
(
pDisplay
)
*
pDisplay
=
0
;
return
S_OK
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ISF_MyComputer_fnGetDefaultColumnState
(
IShellFolder2
*
iface
,
UINT
iColumn
,
DWORD
*
pcsFlags
)
{
...
...
dlls/shell32/shfldr_netplaces.c
View file @
babd22b4
...
...
@@ -519,19 +519,14 @@ static HRESULT WINAPI ISF_NetworkPlaces_fnEnumSearches (IShellFolder2 * iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ISF_NetworkPlaces_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
dwRes
,
ULONG
*
pSort
,
ULONG
*
pD
isplay
)
static
HRESULT
WINAPI
ISF_NetworkPlaces_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
sort
,
ULONG
*
d
isplay
)
{
IGenericSFImpl
*
This
=
impl_from_IShellFolder2
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
if
(
pSort
)
*
pSort
=
0
;
if
(
pDisplay
)
*
pDisplay
=
0
;
TRACE
(
"(%p)->(%#x, %p, %p)
\n
"
,
This
,
reserved
,
sort
,
display
);
return
S_OK
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ISF_NetworkPlaces_fnGetDefaultColumnState
(
...
...
dlls/shell32/shfldr_printers.c
View file @
babd22b4
...
...
@@ -267,11 +267,13 @@ static HRESULT WINAPI IShellFolder_Printers_fnEnumSearches (
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IShellFolder_Printers_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
dwRes
,
ULONG
*
pSort
,
ULONG
*
pD
isplay
)
static
HRESULT
WINAPI
IShellFolder_Printers_fnGetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
sort
,
ULONG
*
d
isplay
)
{
IPrintersFolderImpl
*
This
=
impl_from_IShellFolder2
(
iface
);
FIXME
(
"(%p) stub
\n
"
,
This
);
TRACE
(
"(%p)->(%#x, %p, %p)
\n
"
,
This
,
reserved
,
sort
,
display
);
return
E_NOTIMPL
;
}
...
...
dlls/shell32/shfldr_unixfs.c
View file @
babd22b4
...
...
@@ -1437,19 +1437,13 @@ static HRESULT WINAPI ShellFolder2_EnumSearches(IShellFolder2* iface, IEnumExtra
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellFolder2_GetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
dwReserved
,
ULONG
*
pSort
,
ULONG
*
pDisplay
)
static
HRESULT
WINAPI
ShellFolder2_GetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
reserved
,
ULONG
*
sort
,
ULONG
*
display
)
{
UnixFolder
*
This
=
impl_from_IShellFolder2
(
iface
);
TRACE
(
"(%p)->(
0x%x %p %p)
\n
"
,
This
,
dwReserved
,
pSort
,
pD
isplay
);
TRACE
(
"(%p)->(
%#x, %p, %p)
\n
"
,
This
,
reserved
,
sort
,
d
isplay
);
if
(
pSort
)
*
pSort
=
0
;
if
(
pDisplay
)
*
pDisplay
=
0
;
return
S_OK
;
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ShellFolder2_GetDefaultColumnState
(
IShellFolder2
*
iface
,
...
...
dlls/shell32/tests/shlfolder.c
View file @
babd22b4
...
...
@@ -5395,6 +5395,57 @@ static void test_DataObject(void)
IDataObject_Release
(
data_obj
);
}
static
void
test_GetDefaultColumn
(
void
)
{
static
const
CLSID
*
folders
[]
=
{
&
CLSID_MyComputer
,
&
CLSID_MyDocuments
,
&
CLSID_ControlPanel
,
&
CLSID_NetworkPlaces
,
&
CLSID_Printers
,
&
CLSID_RecycleBin
,
&
CLSID_ShellDesktop
,
};
HRESULT
hr
;
int
i
;
CoInitialize
(
NULL
);
for
(
i
=
0
;
i
<
sizeof
(
folders
)
/
sizeof
(
folders
[
0
]);
i
++
)
{
IShellFolder2
*
folder
;
ULONG
sort
,
display
;
hr
=
CoCreateInstance
(
folders
[
i
],
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IShellFolder2
,
(
void
**
)
&
folder
);
if
(
hr
!=
S_OK
)
{
win_skip
(
"Failed to create folder %s, hr %#x.
\n
"
,
wine_dbgstr_guid
(
folders
[
i
]),
hr
);
continue
;
}
hr
=
IShellFolder2_GetDefaultColumn
(
folder
,
0
,
NULL
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#x.
\n
"
,
hr
);
sort
=
display
=
123
;
hr
=
IShellFolder2_GetDefaultColumn
(
folder
,
0
,
&
sort
,
&
display
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
sort
==
123
&&
display
==
123
,
"Unexpected default column.
\n
"
);
display
=
123
;
hr
=
IShellFolder2_GetDefaultColumn
(
folder
,
0
,
NULL
,
&
display
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
display
==
123
,
"Unexpected default column.
\n
"
);
sort
=
123
;
hr
=
IShellFolder2_GetDefaultColumn
(
folder
,
0
,
&
sort
,
NULL
);
ok
(
hr
==
E_NOTIMPL
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
sort
==
123
,
"Unexpected default column.
\n
"
);
}
CoUninitialize
();
}
START_TEST
(
shlfolder
)
{
init_function_pointers
();
...
...
@@ -5434,6 +5485,7 @@ START_TEST(shlfolder)
test_ShellItemArrayGetAttributes
();
test_SHCreateDefaultContextMenu
();
test_DataObject
();
test_GetDefaultColumn
();
OleUninitialize
();
}
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