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
0d57265a
Commit
0d57265a
authored
Jan 11, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Use CoInternetCombineUrl in URLMonikerImpl_Construct.
parent
4bc3b16b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
umon.c
dlls/urlmon/umon.c
+6
-16
No files found.
dlls/urlmon/umon.c
View file @
0d57265a
...
...
@@ -1065,29 +1065,19 @@ static HRESULT URLMonikerImpl_Construct(URLMonikerImpl* This, LPCOLESTR lpszLeft
DWORD
sizeStr
=
INTERNET_MAX_URL_LENGTH
;
TRACE
(
"(%p,%s,%s)
\n
"
,
This
,
debugstr_w
(
lpszLeftURLName
),
debugstr_w
(
lpszURLName
));
memset
(
This
,
0
,
sizeof
(
*
This
));
/* Initialize the virtual function table. */
This
->
lpvtbl
=
&
VT_URLMonikerImpl
;
This
->
ref
=
0
;
if
(
lpszLeftURLName
)
{
hres
=
UrlCombineW
(
lpszLeftURLName
,
lpszURLName
,
NULL
,
&
sizeStr
,
0
);
if
(
FAILED
(
hres
))
{
return
hres
;
}
sizeStr
++
;
}
else
sizeStr
=
lstrlenW
(
lpszURLName
)
+
1
;
sizeStr
=
lstrlenW
(
lpszURLName
)
+
1
;
if
(
lpszLeftURLName
)
sizeStr
+=
strlenW
(
lpszLeftURLName
)
+
32
;
This
->
URLName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WCHAR
)
*
(
sizeStr
));
if
(
This
->
URLName
==
NULL
)
return
E_OUTOFMEMORY
;
This
->
URLName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeStr
*
sizeof
(
WCHAR
));
if
(
lpszLeftURLName
)
{
hres
=
UrlCombineW
(
lpszLeftURLName
,
lpszURLName
,
This
->
URLName
,
&
sizeStr
,
0
);
hres
=
CoInternetCombineUrl
(
lpszLeftURLName
,
lpszURLName
,
0
,
This
->
URLName
,
sizeStr
,
&
sizeStr
,
0
);
if
(
FAILED
(
hres
))
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
URLName
);
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