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
785e9817
Commit
785e9817
authored
Dec 30, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added ibind argument handling in CreateAsyncBindCtx.
parent
2f0f1fef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
bindctx.c
dlls/urlmon/bindctx.c
+11
-6
url.c
dlls/urlmon/tests/url.c
+20
-3
No files found.
dlls/urlmon/bindctx.c
View file @
785e9817
...
...
@@ -705,13 +705,13 @@ static HRESULT WINAPI AsyncBindCtx_GetObjectParam(IBindCtx* iface, LPOLESTR pszk
return
IBindCtx_GetObjectParam
(
This
->
bindctx
,
pszkey
,
punk
);
}
static
HRESULT
WINAPI
AsyncBindCtx_RevokeObjectParam
(
IBindCtx
*
iface
,
LPOLESTR
p
penum
)
static
HRESULT
WINAPI
AsyncBindCtx_RevokeObjectParam
(
IBindCtx
*
iface
,
LPOLESTR
p
szkey
)
{
AsyncBindCtx
*
This
=
BINDCTX_THIS
(
iface
);
TRACE
(
"(%p)->(%
p)
\n
"
,
This
,
ppenum
);
TRACE
(
"(%p)->(%
s)
\n
"
,
This
,
debugstr_w
(
pszkey
)
);
return
IBindCtx_RevokeObjectParam
(
This
->
bindctx
,
p
penum
);
return
IBindCtx_RevokeObjectParam
(
This
->
bindctx
,
p
szkey
);
}
static
HRESULT
WINAPI
AsyncBindCtx_EnumObjectParam
(
IBindCtx
*
iface
,
IEnumString
**
pszkey
)
...
...
@@ -820,9 +820,14 @@ HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx *ibind, DWORD options,
if
(
reserved
)
WARN
(
"reserved=%d
\n
"
,
reserved
);
hres
=
CreateBindCtx
(
0
,
&
bindctx
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
ibind
)
{
IBindCtx_AddRef
(
ibind
);
bindctx
=
ibind
;
}
else
{
hres
=
CreateBindCtx
(
0
,
&
bindctx
);
if
(
FAILED
(
hres
))
return
hres
;
}
ret
=
heap_alloc
(
sizeof
(
AsyncBindCtx
));
...
...
dlls/urlmon/tests/url.c
View file @
785e9817
...
...
@@ -1191,11 +1191,13 @@ static void test_CreateAsyncBindCtx(void)
static
void
test_CreateAsyncBindCtxEx
(
void
)
{
IBindCtx
*
bctx
=
NULL
,
*
bctx_arg
=
NULL
;
IBindCtx
*
bctx
=
NULL
,
*
bctx
2
=
NULL
,
*
bctx
_arg
=
NULL
;
IUnknown
*
unk
;
BIND_OPTS
bindopts
;
HRESULT
hres
;
static
WCHAR
testW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
0
};
hres
=
CreateAsyncBindCtxEx
(
NULL
,
0
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
hres
==
E_INVALIDARG
,
"CreateAsyncBindCtx failed: %08x, expected E_INVALIDARG
\n
"
,
hres
);
...
...
@@ -1248,8 +1250,23 @@ static void test_CreateAsyncBindCtxEx(void)
if
(
SUCCEEDED
(
hres
))
IUnknown_Release
(
unk
);
if
(
SUCCEEDED
(
hres
))
IBindCtx_Release
(
bctx
);
IBindCtx_Release
(
bctx
);
hres
=
CreateBindCtx
(
0
,
&
bctx2
);
ok
(
hres
==
S_OK
,
"CreateBindCtx failed: %08x
\n
"
,
hres
);
hres
=
CreateAsyncBindCtxEx
(
bctx2
,
0
,
NULL
,
NULL
,
&
bctx
,
0
);
ok
(
hres
==
S_OK
,
"CreateAsyncBindCtxEx failed: %08x
\n
"
,
hres
);
hres
=
IBindCtx_RegisterObjectParam
(
bctx2
,
testW
,
(
IUnknown
*
)
&
Protocol
);
ok
(
hres
==
S_OK
,
"RegisterObjectParam failed: %08x
\n
"
,
hres
);
hres
=
IBindCtx_GetObjectParam
(
bctx
,
testW
,
&
unk
);
ok
(
hres
==
S_OK
,
"GetObjectParam failed: %08x
\n
"
,
hres
);
ok
(
unk
==
(
IUnknown
*
)
&
Protocol
,
"unexpected unk %p
\n
"
,
unk
);
IBindCtx_Release
(
bctx
);
IBindCtx_Release
(
bctx2
);
}
static
void
test_bscholder
(
IBindStatusCallback
*
holder
)
...
...
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