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
8ab355ab
Commit
8ab355ab
authored
Nov 17, 2011
by
Thomas Faber
Committed by
Alexandre Julliard
Nov 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fix MSVC build in htmllocation.c.
parent
ffaf0c49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
htmllocation.c
dlls/mshtml/htmllocation.c
+5
-5
No files found.
dlls/mshtml/htmllocation.c
View file @
8ab355ab
...
...
@@ -293,10 +293,10 @@ static HRESULT WINAPI HTMLLocation_get_protocol(IHTMLLocation *iface, BSTR *p)
FIXME
(
"Unexpected blank protocol
\n
"
);
return
E_NOTIMPL
;
}
else
{
WCHAR
buf
[
url
.
dwSchemeLength
+
1
];
WCHAR
*
buf
;
buf
=
*
p
=
SysAllocStringLen
(
NULL
,
url
.
dwSchemeLength
+
1
);
memcpy
(
buf
,
url
.
lpszScheme
,
url
.
dwSchemeLength
*
sizeof
(
WCHAR
));
buf
[
url
.
dwSchemeLength
]
=
':'
;
*
p
=
SysAllocStringLen
(
buf
,
url
.
dwSchemeLength
+
1
);
}
if
(
!*
p
)
return
E_OUTOFMEMORY
;
...
...
@@ -334,13 +334,13 @@ static HRESULT WINAPI HTMLLocation_get_host(IHTMLLocation *iface, BSTR *p)
if
(
url
.
nPort
)
{
/* <hostname>:<port> */
const
WCHAR
format
[]
=
{
'%'
,
'u'
,
0
};
DWORD
len
=
url
.
dwHostNameLength
+
1
+
5
+
1
;
WCHAR
buf
[
len
]
;
DWORD
len
=
url
.
dwHostNameLength
+
1
+
5
;
WCHAR
*
buf
;
buf
=
*
p
=
SysAllocStringLen
(
NULL
,
len
);
memcpy
(
buf
,
url
.
lpszHostName
,
url
.
dwHostNameLength
*
sizeof
(
WCHAR
));
buf
[
url
.
dwHostNameLength
]
=
':'
;
snprintfW
(
buf
+
url
.
dwHostNameLength
+
1
,
6
,
format
,
url
.
nPort
);
*
p
=
SysAllocString
(
buf
);
}
else
*
p
=
SysAllocStringLen
(
url
.
lpszHostName
,
url
.
dwHostNameLength
);
...
...
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