Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7cb30ca5
Commit
7cb30ca5
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: Properly support dwFlags argument in CreateURLMonikerEx.
parent
c9f821ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
umon.c
dlls/urlmon/umon.c
+17
-3
No files found.
dlls/urlmon/umon.c
View file @
7cb30ca5
...
...
@@ -555,6 +555,18 @@ HRESULT StdURLMoniker_Construct(IUnknown *outer, void **ppv)
return
S_OK
;
}
static
const
DWORD
create_flags_map
[
3
]
=
{
Uri_CREATE_FILE_USE_DOS_PATH
,
/* URL_MK_LEGACY */
0
,
/* URL_MK_UNIFORM */
Uri_CREATE_NO_CANONICALIZE
/* URL_MK_NO_CANONICALIZE */
};
static
const
DWORD
combine_flags_map
[
3
]
=
{
URL_FILE_USE_PATHURL
,
/* URL_MK_LEGACY */
0
,
/* URL_MK_UNIFORM */
URL_DONT_SIMPLIFY
/* URL_MK_NO_CANONICALIZE */
};
/***********************************************************************
* CreateURLMonikerEx (URLMON.@)
*
...
...
@@ -585,8 +597,10 @@ HRESULT WINAPI CreateURLMonikerEx(IMoniker *pmkContext, LPCWSTR szURL, IMoniker
if
(
!
szURL
||
!
ppmk
)
return
E_INVALIDARG
;
if
(
dwFlags
!=
URL_MK_LEGACY
)
if
(
dwFlags
>
sizeof
(
create_flags_map
)
/
sizeof
(
*
create_flags_map
))
{
FIXME
(
"Unsupported flags %x
\n
"
,
dwFlags
);
return
E_INVALIDARG
;
}
if
(
pmkContext
)
{
IUriContainer
*
uri_container
;
...
...
@@ -601,10 +615,10 @@ HRESULT WINAPI CreateURLMonikerEx(IMoniker *pmkContext, LPCWSTR szURL, IMoniker
}
if
(
base_uri
)
{
hres
=
CoInternetCombineUrlEx
(
base_uri
,
szURL
,
URL_FILE_USE_PATHURL
,
&
uri
,
0
);
hres
=
CoInternetCombineUrlEx
(
base_uri
,
szURL
,
combine_flags_map
[
dwFlags
]
,
&
uri
,
0
);
IUri_Release
(
base_uri
);
}
else
{
hres
=
CreateUri
(
szURL
,
Uri_CREATE_
FILE_USE_DOS_PATH
|
Uri_CREATE_ALLOW_RELATIVE
|
Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME
,
0
,
&
uri
);
hres
=
CreateUri
(
szURL
,
Uri_CREATE_
ALLOW_RELATIVE
|
Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME
|
create_flags_map
[
dwFlags
]
,
0
,
&
uri
);
}
if
(
FAILED
(
hres
))
return
hres
;
...
...
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