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
c519159f
Commit
c519159f
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: Added CreateURLMonikerEx2 implementation.
parent
13a79378
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
0 deletions
+53
-0
umon.c
dlls/urlmon/umon.c
+52
-0
urlmon.spec
dlls/urlmon/urlmon.spec
+1
-0
No files found.
dlls/urlmon/umon.c
View file @
c519159f
...
...
@@ -638,6 +638,58 @@ HRESULT WINAPI CreateURLMonikerEx(IMoniker *pmkContext, LPCWSTR szURL, IMoniker
return
S_OK
;
}
/***********************************************************************
* CreateURLMonikerEx2 (URLMON.@)
*/
HRESULT
WINAPI
CreateURLMonikerEx2
(
IMoniker
*
pmkContext
,
IUri
*
pUri
,
IMoniker
**
ppmk
,
DWORD
dwFlags
)
{
IUri
*
context_uri
=
NULL
,
*
uri
;
IUriContainer
*
uri_container
;
URLMoniker
*
ret
;
HRESULT
hres
;
TRACE
(
"(%p %p %p %x)
\n
"
,
pmkContext
,
pUri
,
ppmk
,
dwFlags
);
if
(
ppmk
)
*
ppmk
=
NULL
;
if
(
!
pUri
||
!
ppmk
)
return
E_INVALIDARG
;
if
(
dwFlags
>
sizeof
(
create_flags_map
)
/
sizeof
(
*
create_flags_map
))
{
FIXME
(
"Unsupported flags %x
\n
"
,
dwFlags
);
return
E_INVALIDARG
;
}
if
(
pmkContext
)
{
hres
=
IMoniker_QueryInterface
(
pmkContext
,
&
IID_IUriContainer
,
(
void
**
)
&
uri_container
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IUriContainer_GetIUri
(
uri_container
,
&
context_uri
);
if
(
FAILED
(
hres
))
context_uri
=
NULL
;
IUriContainer_Release
(
uri_container
);
}
}
if
(
context_uri
)
{
hres
=
CoInternetCombineIUri
(
context_uri
,
pUri
,
combine_flags_map
[
dwFlags
],
&
uri
,
0
);
IUri_Release
(
context_uri
);
if
(
FAILED
(
hres
))
return
hres
;
}
else
{
uri
=
pUri
;
IUri_AddRef
(
uri
);
}
hres
=
create_moniker
(
uri
,
&
ret
);
IUri_Release
(
uri
);
if
(
FAILED
(
hres
))
return
hres
;
*
ppmk
=
&
ret
->
IMoniker_iface
;
return
S_OK
;
}
/**********************************************************************
* CreateURLMoniker (URLMON.@)
*
...
...
dlls/urlmon/urlmon.spec
View file @
c519159f
...
...
@@ -36,6 +36,7 @@
@ stdcall CreateUriWithFragment(wstr wstr long long ptr)
@ stdcall CreateURLMoniker(ptr wstr ptr)
@ stdcall CreateURLMonikerEx(ptr wstr ptr long)
@ stdcall CreateURLMonikerEx2(ptr ptr ptr long)
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllInstall(long wstr)
...
...
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