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
c6dba02e
Commit
c6dba02e
authored
Apr 08, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: intshcut.c COM clean up.
parent
0a4dfa66
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
intshcut.c
dlls/shdocvw/intshcut.c
+16
-16
No files found.
dlls/shdocvw/intshcut.c
View file @
c6dba02e
...
...
@@ -44,9 +44,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
typedef
struct
{
IUniformResourceLocatorA
uniformResourceLocatorA
;
IUniformResourceLocatorW
uniformResourceLocatorW
;
IPersistFile
persistFil
e
;
IUniformResourceLocatorA
IUniformResourceLocatorA_iface
;
IUniformResourceLocatorW
IUniformResourceLocatorW_iface
;
IPersistFile
IPersistFile_ifac
e
;
IPropertySetStorage
IPropertySetStorage_iface
;
LONG
refCount
;
...
...
@@ -61,17 +61,17 @@ typedef struct
static
inline
InternetShortcut
*
impl_from_IUniformResourceLocatorA
(
IUniformResourceLocatorA
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
InternetShortcut
,
uniformResourceLocatorA
);
return
CONTAINING_RECORD
(
iface
,
InternetShortcut
,
IUniformResourceLocatorA_iface
);
}
static
inline
InternetShortcut
*
impl_from_IUniformResourceLocatorW
(
IUniformResourceLocatorW
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
InternetShortcut
,
uniformResourceLocatorW
);
return
CONTAINING_RECORD
(
iface
,
InternetShortcut
,
IUniformResourceLocatorW_iface
);
}
static
inline
InternetShortcut
*
impl_from_IPersistFile
(
IPersistFile
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
InternetShortcut
,
persistFil
e
);
return
CONTAINING_RECORD
(
iface
,
InternetShortcut
,
IPersistFile_ifac
e
);
}
static
inline
InternetShortcut
*
impl_from_IPropertySetStorage
(
IPropertySetStorage
*
iface
)
...
...
@@ -146,13 +146,13 @@ static HRESULT Unknown_QueryInterface(InternetShortcut *This, REFIID riid, PVOID
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
*
ppvObject
=
NULL
;
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
*
ppvObject
=
&
This
->
uniformResourceLocatorA
;
*
ppvObject
=
&
This
->
IUniformResourceLocatorA_iface
;
else
if
(
IsEqualGUID
(
&
IID_IUniformResourceLocatorA
,
riid
))
*
ppvObject
=
&
This
->
uniformResourceLocatorA
;
*
ppvObject
=
&
This
->
IUniformResourceLocatorA_iface
;
else
if
(
IsEqualGUID
(
&
IID_IUniformResourceLocatorW
,
riid
))
*
ppvObject
=
&
This
->
uniformResourceLocatorW
;
*
ppvObject
=
&
This
->
IUniformResourceLocatorW_iface
;
else
if
(
IsEqualGUID
(
&
IID_IPersistFile
,
riid
))
*
ppvObject
=
&
This
->
persistFil
e
;
*
ppvObject
=
&
This
->
IPersistFile_ifac
e
;
else
if
(
IsEqualGUID
(
&
IID_IPropertySetStorage
,
riid
))
*
ppvObject
=
&
This
->
IPropertySetStorage_iface
;
else
if
(
IsEqualGUID
(
&
IID_IShellLinkA
,
riid
))
...
...
@@ -371,7 +371,7 @@ static HRESULT WINAPI UniformResourceLocatorA_InvokeCommand(IUniformResourceLoca
wideCommandInfo
.
pcszVerb
=
wideVerb
;
res
=
UniformResourceLocatorW_InvokeCommand
(
&
This
->
uniformResourceLocatorW
,
&
wideCommandInfo
);
res
=
UniformResourceLocatorW_InvokeCommand
(
&
This
->
IUniformResourceLocatorW_iface
,
&
wideCommandInfo
);
heap_free
(
wideVerb
);
return
res
;
...
...
@@ -806,9 +806,9 @@ static InternetShortcut *create_shortcut(void)
HRESULT
hr
;
IPropertyStorage
*
dummy
;
newshortcut
->
uniformResourceLocatorA
.
lpVtbl
=
&
uniformResourceLocatorAVtbl
;
newshortcut
->
uniformResourceLocatorW
.
lpVtbl
=
&
uniformResourceLocatorWVtbl
;
newshortcut
->
persistFil
e
.
lpVtbl
=
&
persistFileVtbl
;
newshortcut
->
IUniformResourceLocatorA_iface
.
lpVtbl
=
&
uniformResourceLocatorAVtbl
;
newshortcut
->
IUniformResourceLocatorW_iface
.
lpVtbl
=
&
uniformResourceLocatorWVtbl
;
newshortcut
->
IPersistFile_ifac
e
.
lpVtbl
=
&
persistFileVtbl
;
newshortcut
->
IPropertySetStorage_iface
.
lpVtbl
=
&
propertySetStorageVtbl
;
newshortcut
->
refCount
=
0
;
hr
=
StgCreateStorageEx
(
NULL
,
STGM_CREATE
|
STGM_READWRITE
|
STGM_SHARE_EXCLUSIVE
,
STGFMT_STORAGE
,
0
,
NULL
,
NULL
,
&
IID_IPropertySetStorage
,
(
void
**
)
&
newshortcut
->
property_set_storage
);
...
...
@@ -877,7 +877,7 @@ void WINAPI OpenURL(HWND hWnd, HINSTANCE hInst, LPCSTR lpcstrUrl, int nShowCmd)
urlfilepath
=
heap_alloc
(
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
lpcstrUrl
,
-
1
,
urlfilepath
,
len
);
if
(
SUCCEEDED
(
IPersistFile_Load
(
&
shortcut
->
persistFil
e
,
urlfilepath
,
0
)))
if
(
SUCCEEDED
(
IPersistFile_Load
(
&
shortcut
->
IPersistFile_ifac
e
,
urlfilepath
,
0
)))
{
URLINVOKECOMMANDINFOW
ici
;
...
...
@@ -886,7 +886,7 @@ void WINAPI OpenURL(HWND hWnd, HINSTANCE hInst, LPCSTR lpcstrUrl, int nShowCmd)
ici
.
dwFlags
=
IURL_INVOKECOMMAND_FL_USE_DEFAULT_VERB
;
ici
.
hwndParent
=
hWnd
;
if
FAILED
(
UniformResourceLocatorW_InvokeCommand
(
&
shortcut
->
uniformResourceLocatorW
,
(
PURLINVOKECOMMANDINFOW
)
&
ici
))
if
(
FAILED
(
UniformResourceLocatorW_InvokeCommand
(
&
shortcut
->
IUniformResourceLocatorW_iface
,
(
PURLINVOKECOMMANDINFOW
)
&
ici
)
))
TRACE
(
"failed to open URL: %s
\n
"
,
debugstr_a
(
lpcstrUrl
));
}
...
...
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