Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e6d6c6fe
Commit
e6d6c6fe
authored
Jan 12, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added Uri IPersistStream stub implementation.
parent
e6b2b580
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
1 deletion
+75
-1
uri.c
dlls/urlmon/uri.c
+75
-1
No files found.
dlls/urlmon/uri.c
View file @
e6d6c6fe
...
...
@@ -50,6 +50,7 @@ static const IID IID_IUriObj = {0x4b364760,0x9f51,0x11df,{0x98,0x1c,0x08,0x00,0x
typedef
struct
{
IUri
IUri_iface
;
IUriBuilderFactory
IUriBuilderFactory_iface
;
IPersistStream
IPersistStream_iface
;
LONG
ref
;
...
...
@@ -4213,8 +4214,11 @@ static HRESULT WINAPI Uri_QueryInterface(IUri *iface, REFIID riid, void **ppv)
TRACE
(
"(%p)->(IID_IUri %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IUri_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IUriBuilderFactory
,
riid
))
{
TRACE
(
"(%p)->(IID_IUriBuilderFactory %p)
\n
"
,
This
,
riid
);
TRACE
(
"(%p)->(IID_IUriBuilderFactory %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IUriBuilderFactory_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IPersistStream
,
riid
))
{
TRACE
(
"(%p)->(IID_IPersistStream %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IPersistStream_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IUriObj
,
riid
))
{
TRACE
(
"(%p)->(IID_IUriObj %p)
\n
"
,
This
,
ppv
);
*
ppv
=
This
;
...
...
@@ -5095,11 +5099,81 @@ static const IUriBuilderFactoryVtbl UriBuilderFactoryVtbl = {
UriBuilderFactory_CreateInitializedIUriBuilder
};
static
inline
Uri
*
impl_from_IPersistStream
(
IPersistStream
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
Uri
,
IPersistStream_iface
);
}
static
HRESULT
WINAPI
PersistStream_QueryInterface
(
IPersistStream
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
Uri
*
This
=
impl_from_IPersistStream
(
iface
);
return
IUri_QueryInterface
(
&
This
->
IUri_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
PersistStream_AddRef
(
IPersistStream
*
iface
)
{
Uri
*
This
=
impl_from_IPersistStream
(
iface
);
return
IUri_AddRef
(
&
This
->
IUri_iface
);
}
static
ULONG
WINAPI
PersistStream_Release
(
IPersistStream
*
iface
)
{
Uri
*
This
=
impl_from_IPersistStream
(
iface
);
return
IUri_Release
(
&
This
->
IUri_iface
);
}
static
HRESULT
WINAPI
PersistStream_GetClassID
(
IPersistStream
*
iface
,
CLSID
*
pClassID
)
{
Uri
*
This
=
impl_from_IPersistStream
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pClassID
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistStream_IsDirty
(
IPersistStream
*
iface
)
{
Uri
*
This
=
impl_from_IPersistStream
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistStream_Load
(
IPersistStream
*
iface
,
IStream
*
pStm
)
{
Uri
*
This
=
impl_from_IPersistStream
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pStm
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistStream_Save
(
IPersistStream
*
iface
,
IStream
*
pStm
,
BOOL
fClearDirty
)
{
Uri
*
This
=
impl_from_IPersistStream
(
iface
);
FIXME
(
"(%p)->(%p %x)
\n
"
,
This
,
pStm
,
fClearDirty
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistStream_GetSizeMax
(
IPersistStream
*
iface
,
ULARGE_INTEGER
*
pcbSize
)
{
Uri
*
This
=
impl_from_IPersistStream
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pcbSize
);
return
E_NOTIMPL
;
}
static
const
IPersistStreamVtbl
PersistStreamVtbl
=
{
PersistStream_QueryInterface
,
PersistStream_AddRef
,
PersistStream_Release
,
PersistStream_GetClassID
,
PersistStream_IsDirty
,
PersistStream_Load
,
PersistStream_Save
,
PersistStream_GetSizeMax
};
static
Uri
*
create_uri_obj
(
void
)
{
Uri
*
ret
=
heap_alloc_zero
(
sizeof
(
Uri
));
if
(
ret
)
{
ret
->
IUri_iface
.
lpVtbl
=
&
UriVtbl
;
ret
->
IUriBuilderFactory_iface
.
lpVtbl
=
&
UriBuilderFactoryVtbl
;
ret
->
IPersistStream_iface
.
lpVtbl
=
&
PersistStreamVtbl
;
ret
->
ref
=
1
;
}
...
...
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