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
cca52128
Commit
cca52128
authored
Jun 23, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use proper IUri in BindToStorage implementation.
parent
649c1793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
url.c
dlls/urlmon/tests/url.c
+12
-0
umon.c
dlls/urlmon/umon.c
+3
-9
No files found.
dlls/urlmon/tests/url.c
View file @
cca52128
...
...
@@ -3582,6 +3582,8 @@ static void test_StdURLMoniker(void)
{
IMoniker
*
mon
,
*
async_mon
;
LPOLESTR
display_name
;
IBindCtx
*
bctx
;
IUnknown
*
unk
;
HRESULT
hres
;
hres
=
CoCreateInstance
(
&
IID_IInternet
,
NULL
,
CLSCTX_INPROC_SERVER
|
CLSCTX_INPROC_HANDLER
,
...
...
@@ -3614,6 +3616,16 @@ static void test_StdURLMoniker(void)
IUriContainer_Release
(
uri_container
);
}
SET_EXPECT
(
QueryInterface_IServiceProvider
);
hres
=
CreateAsyncBindCtx
(
0
,
(
IBindStatusCallback
*
)
&
bsc
,
NULL
,
&
bctx
);
ok
(
hres
==
S_OK
,
"CreateAsyncBindCtx failed: %08x
\n\n
"
,
hres
);
CHECK_CALLED
(
QueryInterface_IServiceProvider
);
unk
=
(
void
*
)
0xdeadbeef
;
hres
=
IMoniker_BindToStorage
(
mon
,
bctx
,
NULL
,
&
IID_IStream
,
(
void
**
)
&
unk
);
ok
(
hres
==
MK_E_SYNTAX
,
"BindToStorage failed: %08x, expected MK_E_SYNTAX
\n
"
,
hres
);
ok
(
!
unk
,
"unk = %p
\n
"
,
unk
);
IMoniker_Release
(
mon
);
}
...
...
dlls/urlmon/umon.c
View file @
cca52128
...
...
@@ -252,8 +252,6 @@ static HRESULT WINAPI URLMoniker_BindToStorage(IMoniker* iface, IBindCtx* pbc,
IMoniker
*
pmkToLeft
,
REFIID
riid
,
void
**
ppvObject
)
{
URLMoniker
*
This
=
impl_from_IMoniker
(
iface
);
IUri
*
uri
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p %p %s %p)
\n
"
,
This
,
pbc
,
pmkToLeft
,
debugstr_guid
(
riid
),
ppvObject
);
...
...
@@ -264,14 +262,10 @@ static HRESULT WINAPI URLMoniker_BindToStorage(IMoniker* iface, IBindCtx* pbc,
if
(
pmkToLeft
)
FIXME
(
"Unsupported pmkToLeft
\n
"
);
hres
=
CreateUri
(
This
->
URLName
,
Uri_CREATE_FILE_USE_DOS_PATH
,
0
,
&
uri
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
bind_to_storage
(
uri
,
pbc
,
riid
,
ppvObject
);
if
(
!
This
->
uri
)
return
MK_E_SYNTAX
;
IUri_Release
(
uri
);
return
hres
;
return
bind_to_storage
(
This
->
uri
,
pbc
,
riid
,
ppvObject
);
}
static
HRESULT
WINAPI
URLMoniker_Reduce
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
...
...
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