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
3be034e9
Commit
3be034e9
authored
May 23, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separated IBinding and IMoniker interfaces.
parent
b4b7f05d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
url.c
dlls/urlmon/tests/url.c
+13
-0
umon.c
dlls/urlmon/umon.c
+0
-0
No files found.
dlls/urlmon/tests/url.c
View file @
3be034e9
...
@@ -93,12 +93,19 @@ static ULONG WINAPI statusclb_Release(IBindStatusCallback *iface)
...
@@ -93,12 +93,19 @@ static ULONG WINAPI statusclb_Release(IBindStatusCallback *iface)
static
HRESULT
WINAPI
statusclb_OnStartBinding
(
IBindStatusCallback
*
iface
,
DWORD
dwReserved
,
IBinding
*
pib
)
static
HRESULT
WINAPI
statusclb_OnStartBinding
(
IBindStatusCallback
*
iface
,
DWORD
dwReserved
,
IBinding
*
pib
)
{
{
statusclb
*
This
=
(
statusclb
*
)
iface
;
statusclb
*
This
=
(
statusclb
*
)
iface
;
HRESULT
hres
;
IMoniker
*
mon
;
This
->
pbind
=
pib
;
This
->
pbind
=
pib
;
ok
(
pib
!=
NULL
,
"pib should not be NULL
\n
"
);
ok
(
pib
!=
NULL
,
"pib should not be NULL
\n
"
);
if
(
pib
)
if
(
pib
)
IBinding_AddRef
(
pib
);
IBinding_AddRef
(
pib
);
hres
=
IBinding_QueryInterface
(
pib
,
&
IID_IMoniker
,
(
void
**
)
&
mon
);
ok
(
hres
==
E_NOINTERFACE
,
"IBinding should not have IMoniker interface
\n
"
);
if
(
SUCCEEDED
(
hres
))
IMoniker_Release
(
mon
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -242,6 +249,7 @@ static void test_BindToStorage()
...
@@ -242,6 +249,7 @@ static void test_BindToStorage()
MSG
msg
;
MSG
msg
;
IBindStatusCallback
*
previousclb
,
*
sclb
=
statusclb_create
();
IBindStatusCallback
*
previousclb
,
*
sclb
=
statusclb_create
();
IUnknown
*
unk
=
(
IUnknown
*
)
0x00ff00ff
;
IUnknown
*
unk
=
(
IUnknown
*
)
0x00ff00ff
;
IBinding
*
bind
;
hres
=
CreateAsyncBindCtx
(
0
,
sclb
,
NULL
,
&
bctx
);
hres
=
CreateAsyncBindCtx
(
0
,
sclb
,
NULL
,
&
bctx
);
ok
(
SUCCEEDED
(
hres
),
"CreateAsyncBindCtx failed: %08lx
\n\n
"
,
hres
);
ok
(
SUCCEEDED
(
hres
),
"CreateAsyncBindCtx failed: %08lx
\n\n
"
,
hres
);
...
@@ -264,6 +272,11 @@ static void test_BindToStorage()
...
@@ -264,6 +272,11 @@ static void test_BindToStorage()
return
;
return
;
}
}
hres
=
IMoniker_QueryInterface
(
mon
,
&
IID_IBinding
,
(
void
**
)
&
bind
);
ok
(
hres
==
E_NOINTERFACE
,
"IMoniker should not have IBinding interface
\n
"
);
if
(
SUCCEEDED
(
hres
))
IBinding_Release
(
bind
);
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
NULL
,
&
display_name
);
hres
=
IMoniker_GetDisplayName
(
mon
,
bctx
,
NULL
,
&
display_name
);
ok
(
SUCCEEDED
(
hres
),
"GetDisplayName failed %08lx
\n
"
,
hres
);
ok
(
SUCCEEDED
(
hres
),
"GetDisplayName failed %08lx
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
display_name
,
WINE_ABOUT_URL
),
"GetDisplayName got wrong name
\n
"
);
ok
(
!
lstrcmpW
(
display_name
,
WINE_ABOUT_URL
),
"GetDisplayName got wrong name
\n
"
);
...
...
dlls/urlmon/umon.c
View file @
3be034e9
This diff is collapsed.
Click to expand it.
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