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
842798f8
Commit
842798f8
authored
Jun 01, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Some cleanup for IExplorerBrowser.
parent
7a5ca2d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
ebrowser.c
dlls/shell32/ebrowser.c
+20
-20
No files found.
dlls/shell32/ebrowser.c
View file @
842798f8
...
...
@@ -1214,7 +1214,7 @@ static HRESULT WINAPI IExplorerBrowser_fnBrowseToObject(IExplorerBrowser *iface,
TRACE
(
"%p (%p, 0x%x)
\n
"
,
This
,
punk
,
uFlags
);
if
(
!
punk
)
return
IExplorerBrowser_
fn
BrowseToIDList
(
iface
,
NULL
,
uFlags
);
return
IExplorerBrowser_BrowseToIDList
(
iface
,
NULL
,
uFlags
);
hr
=
SHGetIDListFromObject
(
punk
,
&
pidl
);
if
(
SUCCEEDED
(
hr
))
...
...
@@ -1292,21 +1292,21 @@ static HRESULT WINAPI IShellBrowser_fnQueryInterface(IShellBrowser *iface,
{
ExplorerBrowserImpl
*
This
=
impl_from_IShellBrowser
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppvObject
);
return
I
ExplorerBrowser_QueryInterface
(
&
This
->
IExplorerBrowser_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
IShellBrowser_fnAddRef
(
IShellBrowser
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_IShellBrowser
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_AddRef
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_AddRef
(
&
This
->
IExplorerBrowser_iface
);
}
static
ULONG
WINAPI
IShellBrowser_fnRelease
(
IShellBrowser
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_IShellBrowser
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_Release
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_Release
(
&
This
->
IExplorerBrowser_iface
);
}
static
HRESULT
WINAPI
IShellBrowser_fnGetWindow
(
IShellBrowser
*
iface
,
HWND
*
phwnd
)
...
...
@@ -1396,7 +1396,7 @@ static HRESULT WINAPI IShellBrowser_fnBrowseObject(IShellBrowser *iface,
ExplorerBrowserImpl
*
This
=
impl_from_IShellBrowser
(
iface
);
TRACE
(
"%p (%p, %x)
\n
"
,
This
,
pidl
,
wFlags
);
return
IExplorerBrowser_
fnBrowseToIDList
((
IExplorerBrowser
*
)
This
,
pidl
,
wFlags
);
return
IExplorerBrowser_
BrowseToIDList
(
&
This
->
IExplorerBrowser_iface
,
pidl
,
wFlags
);
}
static
HRESULT
WINAPI
IShellBrowser_fnGetViewStateStream
(
IShellBrowser
*
iface
,
...
...
@@ -1500,21 +1500,21 @@ static HRESULT WINAPI ICommDlgBrowser3_fnQueryInterface(ICommDlgBrowser3 *iface,
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppvObject
);
return
I
ExplorerBrowser_QueryInterface
(
&
This
->
IExplorerBrowser_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
ICommDlgBrowser3_fnAddRef
(
ICommDlgBrowser3
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_AddRef
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_AddRef
(
&
This
->
IExplorerBrowser_iface
);
}
static
ULONG
WINAPI
ICommDlgBrowser3_fnRelease
(
ICommDlgBrowser3
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_ICommDlgBrowser3
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_Release
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_Release
(
&
This
->
IExplorerBrowser_iface
);
}
static
HRESULT
WINAPI
ICommDlgBrowser3_fnOnDefaultCommand
(
ICommDlgBrowser3
*
iface
,
...
...
@@ -1549,7 +1549,7 @@ static HRESULT WINAPI ICommDlgBrowser3_fnOnDefaultCommand(ICommDlgBrowser3 *ifac
/* Handle folders by browsing to them. */
if
(
_ILIsFolder
(
pidl_child
)
||
_ILIsDrive
(
pidl_child
)
||
_ILIsSpecialFolder
(
pidl_child
))
{
IExplorerBrowser_BrowseToIDList
(
(
IExplorerBrowser
*
)
This
,
pidl_child
,
SBSP_RELATIVE
);
IExplorerBrowser_BrowseToIDList
(
&
This
->
IExplorerBrowser_iface
,
pidl_child
,
SBSP_RELATIVE
);
ret
=
S_OK
;
}
GlobalUnlock
(
medium
.
u
.
hGlobal
);
...
...
@@ -1694,21 +1694,21 @@ static HRESULT WINAPI IObjectWithSite_fnQueryInterface(IObjectWithSite *iface,
{
ExplorerBrowserImpl
*
This
=
impl_from_IObjectWithSite
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppvObject
);
return
I
ExplorerBrowser_QueryInterface
(
&
This
->
IExplorerBrowser_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
IObjectWithSite_fnAddRef
(
IObjectWithSite
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_IObjectWithSite
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_AddRef
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_AddRef
(
&
This
->
IExplorerBrowser_iface
);
}
static
ULONG
WINAPI
IObjectWithSite_fnRelease
(
IObjectWithSite
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_IObjectWithSite
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_Release
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_Release
(
&
This
->
IExplorerBrowser_iface
);
}
static
HRESULT
WINAPI
IObjectWithSite_fnSetSite
(
IObjectWithSite
*
iface
,
IUnknown
*
punk_site
)
...
...
@@ -1784,14 +1784,14 @@ static ULONG WINAPI NSTCEvents_fnAddRef(INameSpaceTreeControlEvents *iface)
{
ExplorerBrowserImpl
*
This
=
impl_from_INameSpaceTreeControlEvents
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_AddRef
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_AddRef
(
&
This
->
IExplorerBrowser_iface
);
}
static
ULONG
WINAPI
NSTCEvents_fnRelease
(
INameSpaceTreeControlEvents
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_INameSpaceTreeControlEvents
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_Release
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_Release
(
&
This
->
IExplorerBrowser_iface
);
}
static
HRESULT
WINAPI
NSTCEvents_fnOnItemClick
(
INameSpaceTreeControlEvents
*
iface
,
...
...
@@ -1843,7 +1843,7 @@ static HRESULT WINAPI NSTCEvents_fnOnSelectionChanged(INameSpaceTreeControlEvent
hr
=
IShellItemArray_GetItemAt
(
psiaSelection
,
0
,
&
psi
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IExplorerBrowser_BrowseToObject
(
(
IExplorerBrowser
*
)
This
,
hr
=
IExplorerBrowser_BrowseToObject
(
&
This
->
IExplorerBrowser_iface
,
(
IUnknown
*
)
psi
,
SBSP_DEFBROWSER
);
IShellItem_Release
(
psi
);
}
...
...
@@ -1996,21 +1996,21 @@ static HRESULT WINAPI IInputObject_fnQueryInterface(IInputObject *iface,
{
ExplorerBrowserImpl
*
This
=
impl_from_IInputObject
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppvObject
);
return
I
ExplorerBrowser_QueryInterface
(
&
This
->
IExplorerBrowser_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
IInputObject_fnAddRef
(
IInputObject
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_IInputObject
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_AddRef
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_AddRef
(
&
This
->
IExplorerBrowser_iface
);
}
static
ULONG
WINAPI
IInputObject_fnRelease
(
IInputObject
*
iface
)
{
ExplorerBrowserImpl
*
This
=
impl_from_IInputObject
(
iface
);
TRACE
(
"%p
\n
"
,
This
);
return
I
Unknown_Release
((
IUnknown
*
)
This
);
return
I
ExplorerBrowser_Release
(
&
This
->
IExplorerBrowser_iface
);
}
static
HRESULT
WINAPI
IInputObject_fnUIActivateIO
(
IInputObject
*
iface
,
BOOL
fActivate
,
MSG
*
pMsg
)
...
...
@@ -2071,8 +2071,8 @@ HRESULT WINAPI ExplorerBrowser_Constructor(IUnknown *pUnkOuter, REFIID riid, voi
list_init
(
&
eb
->
event_clients
);
list_init
(
&
eb
->
travellog
);
ret
=
IExplorerBrowser_QueryInterface
(
(
IExplorerBrowser
*
)
eb
,
riid
,
ppv
);
IExplorerBrowser_Release
(
(
IExplorerBrowser
*
)
eb
);
ret
=
IExplorerBrowser_QueryInterface
(
&
eb
->
IExplorerBrowser_iface
,
riid
,
ppv
);
IExplorerBrowser_Release
(
&
eb
->
IExplorerBrowser_iface
);
TRACE
(
"--(%p)
\n
"
,
ppv
);
return
ret
;
...
...
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