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
af35ffa1
Commit
af35ffa1
authored
Aug 11, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for aggregation in about protocol.
parent
df6ed2f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
10 deletions
+26
-10
protocol.c
dlls/mshtml/protocol.c
+26
-10
No files found.
dlls/mshtml/protocol.c
View file @
af35ffa1
...
...
@@ -41,6 +41,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define PROTOCOLINFO(x) ((IInternetProtocolInfo*) &(x)->lpInternetProtocolInfoVtbl)
#define CLASSFACTORY(x) ((IClassFactory*) &(x)->lpClassFactoryVtbl)
#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl)
typedef
struct
{
const
IInternetProtocolInfoVtbl
*
lpInternetProtocolInfoVtbl
;
...
...
@@ -140,21 +141,27 @@ typedef struct {
BYTE
*
data
;
ULONG
data_len
;
ULONG
cur
;
IUnknown
*
pUnkOuter
;
}
AboutProtocol
;
static
HRESULT
WINAPI
AboutProtocol_QueryInterface
(
IInternetProtocol
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
AboutProtocol
*
This
=
(
AboutProtocol
*
)
iface
;
*
ppv
=
NULL
;
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
iface
,
ppv
);
*
ppv
=
iface
;
if
(
This
->
pUnkOuter
)
return
IUnknown_QueryInterface
(
This
->
pUnkOuter
,
riid
,
ppv
);
*
ppv
=
PROTOCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IInternetProtocolRoot
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetProtocolRoot %p)
\n
"
,
iface
,
ppv
);
*
ppv
=
iface
;
*
ppv
=
PROTOCOL
(
This
)
;
}
else
if
(
IsEqualGUID
(
&
IID_IInternetProtocol
,
riid
))
{
TRACE
(
"(%p)->(IID_IInternetProtocol %p)
\n
"
,
iface
,
ppv
);
*
ppv
=
iface
;
*
ppv
=
PROTOCOL
(
This
)
;
}
else
if
(
IsEqualGUID
(
&
IID_IServiceProvider
,
riid
))
{
FIXME
(
"IServiceProvider is not implemented
\n
"
);
return
E_NOINTERFACE
;
...
...
@@ -174,7 +181,7 @@ static ULONG WINAPI AboutProtocol_AddRef(IInternetProtocol *iface)
AboutProtocol
*
This
=
(
AboutProtocol
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%ld
\n
"
,
iface
,
ref
);
return
ref
;
return
This
->
pUnkOuter
?
IUnknown_AddRef
(
This
->
pUnkOuter
)
:
ref
;
}
static
ULONG
WINAPI
AboutProtocol_Release
(
IInternetProtocol
*
iface
)
...
...
@@ -190,7 +197,7 @@ static ULONG WINAPI AboutProtocol_Release(IInternetProtocol *iface)
UNLOCK_MODULE
();
}
return
ref
;
return
This
->
pUnkOuter
?
IUnknown_Release
(
This
->
pUnkOuter
)
:
ref
;
}
static
HRESULT
WINAPI
AboutProtocol_Start
(
IInternetProtocol
*
iface
,
LPCWSTR
szUrl
,
...
...
@@ -352,9 +359,9 @@ static HRESULT WINAPI AboutProtocolFactory_CreateInstance(IClassFactory *iface,
REFIID
riid
,
void
**
ppv
)
{
AboutProtocol
*
ret
;
HRESULT
hres
;
HRESULT
hres
=
S_OK
;
TRACE
(
"(%p)->(%
s %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"(%p)->(%
p %s %p)
\n
"
,
iface
,
pUnkOuter
,
debugstr_guid
(
riid
),
ppv
);
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
AboutProtocol
));
ret
->
lpInternetProtocolVtbl
=
&
AboutProtocolVtbl
;
...
...
@@ -363,8 +370,17 @@ static HRESULT WINAPI AboutProtocolFactory_CreateInstance(IClassFactory *iface,
ret
->
data
=
NULL
;
ret
->
data_len
=
0
;
ret
->
cur
=
0
;
hres
=
IUnknown_QueryInterface
((
IUnknown
*
)
ret
,
riid
,
ppv
);
ret
->
pUnkOuter
=
pUnkOuter
;
if
(
pUnkOuter
)
{
ret
->
ref
=
1
;
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
*
ppv
=
PROTOCOL
(
ret
);
else
hres
=
E_INVALIDARG
;
}
else
{
hres
=
IInternetProtocol_QueryInterface
(
PROTOCOL
(
ret
),
riid
,
ppv
);
}
if
(
SUCCEEDED
(
hres
))
LOCK_MODULE
();
...
...
@@ -683,7 +699,7 @@ static HRESULT WINAPI ResProtocolFactory_CreateInstance(IClassFactory *iface, IU
ResProtocol
*
ret
;
HRESULT
hres
;
TRACE
(
"(%p)->(%
s %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
TRACE
(
"(%p)->(%
p %s %p)
\n
"
,
iface
,
pUnkOuter
,
debugstr_guid
(
riid
),
ppv
);
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ResProtocol
));
ret
->
lpInternetProtocolVtbl
=
&
ResProtocolVtbl
;
...
...
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