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
afc721f0
Commit
afc721f0
authored
Jun 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
700910be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
Makefile.in
dlls/inetcomm/Makefile.in
+2
-0
mimeintl.c
dlls/inetcomm/mimeintl.c
+1
-2
mimeole.c
dlls/inetcomm/mimeole.c
+2
-3
protocol.c
dlls/inetcomm/protocol.c
+9
-10
No files found.
dlls/inetcomm/Makefile.in
View file @
afc721f0
...
...
@@ -2,6 +2,8 @@ MODULE = inetcomm.dll
IMPORTLIB
=
inetcomm
IMPORTS
=
uuid urlmon propsys oleaut32 ole32 ws2_32 user32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
imaptransport.c
\
inetcomm_main.c
\
...
...
dlls/inetcomm/mimeintl.c
View file @
afc721f0
...
...
@@ -34,7 +34,6 @@
#include "mlang.h"
#include "wine/list.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "inetcomm_private.h"
...
...
@@ -415,7 +414,7 @@ static HRESULT WINAPI MimeInternat_ConvertString(IMimeInternational *iface, CODE
break
;
case
VT_LPWSTR
:
cpiSource
=
CP_UNICODE
;
src_len
=
strlenW
(
pIn
->
u
.
pwszVal
)
*
sizeof
(
WCHAR
);
src_len
=
l
strlenW
(
pIn
->
u
.
pwszVal
)
*
sizeof
(
WCHAR
);
break
;
default:
return
E_INVALIDARG
;
...
...
dlls/inetcomm/mimeole.c
View file @
afc721f0
...
...
@@ -37,7 +37,6 @@
#include "wine/heap.h"
#include "wine/list.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "inetcomm_private.h"
...
...
@@ -3713,13 +3712,13 @@ HRESULT WINAPI MimeOleObjectFromMoniker(BINDF bindf, IMoniker *moniker, IBindCtx
TRACE
(
"display name %s
\n
"
,
debugstr_w
(
display_name
));
len
=
strlenW
(
display_name
);
len
=
l
strlenW
(
display_name
);
mhtml_url
=
heap_alloc
((
len
+
1
)
*
sizeof
(
WCHAR
)
+
sizeof
(
mhtml_prefixW
));
if
(
!
mhtml_url
)
return
E_OUTOFMEMORY
;
memcpy
(
mhtml_url
,
mhtml_prefixW
,
sizeof
(
mhtml_prefixW
));
strcpyW
(
mhtml_url
+
ARRAY_SIZE
(
mhtml_prefixW
),
display_name
);
l
strcpyW
(
mhtml_url
+
ARRAY_SIZE
(
mhtml_prefixW
),
display_name
);
HeapFree
(
GetProcessHeap
(),
0
,
display_name
);
hres
=
CreateURLMoniker
(
NULL
,
mhtml_url
,
moniker_new
);
...
...
dlls/inetcomm/protocol.c
View file @
afc721f0
...
...
@@ -26,7 +26,6 @@
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
inetcomm
);
...
...
@@ -70,7 +69,7 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
if
(
str
)
{
DWORD
size
;
size
=
(
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
(
l
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
ret
=
heap_alloc
(
size
);
if
(
ret
)
memcpy
(
ret
,
str
,
size
);
...
...
@@ -83,20 +82,20 @@ static HRESULT parse_mhtml_url(const WCHAR *url, mhtml_url_t *r)
{
const
WCHAR
*
p
;
if
(
strncmpiW
(
url
,
mhtml_prefixW
,
ARRAY_SIZE
(
mhtml_prefixW
)))
if
(
wcsnicmp
(
url
,
mhtml_prefixW
,
ARRAY_SIZE
(
mhtml_prefixW
)))
return
E_FAIL
;
r
->
mhtml
=
url
+
ARRAY_SIZE
(
mhtml_prefixW
);
p
=
strchrW
(
r
->
mhtml
,
'!'
);
p
=
wcschr
(
r
->
mhtml
,
'!'
);
if
(
p
)
{
r
->
mhtml_len
=
p
-
r
->
mhtml
;
/* FIXME: We handle '!' and '!x-usc:' in URLs as the same thing. Those should not be the same. */
if
(
!
strncmpW
(
p
,
mhtml_separatorW
,
ARRAY_SIZE
(
mhtml_separatorW
)))
if
(
!
wcsncmp
(
p
,
mhtml_separatorW
,
ARRAY_SIZE
(
mhtml_separatorW
)))
p
+=
ARRAY_SIZE
(
mhtml_separatorW
);
else
p
++
;
}
else
{
r
->
mhtml_len
=
strlenW
(
r
->
mhtml
);
r
->
mhtml_len
=
l
strlenW
(
r
->
mhtml
);
}
r
->
location
=
p
;
...
...
@@ -142,7 +141,7 @@ static HRESULT on_mime_message_available(MimeHtmlProtocol *protocol, IMimeMessag
if
(
FAILED
(
hres
))
return
report_result
(
protocol
,
hres
);
found
=
!
strcmpW
(
protocol
->
location
,
value
.
u
.
pwszVal
);
found
=
!
l
strcmpW
(
protocol
->
location
,
value
.
u
.
pwszVal
);
PropVariantClear
(
&
value
);
}
while
(
!
found
);
}
else
{
...
...
@@ -670,14 +669,14 @@ static HRESULT WINAPI MimeHtmlProtocolInfo_CombineUrl(IInternetProtocolInfo *ifa
if
(
FAILED
(
hres
))
return
hres
;
if
(
!
strncmpiW
(
pwzRelativeUrl
,
mhtml_prefixW
,
ARRAY_SIZE
(
mhtml_prefixW
)))
{
if
(
!
wcsnicmp
(
pwzRelativeUrl
,
mhtml_prefixW
,
ARRAY_SIZE
(
mhtml_prefixW
)))
{
FIXME
(
"Relative URL is mhtml protocol
\n
"
);
return
INET_E_USE_DEFAULT_PROTOCOLHANDLER
;
}
len
+=
url
.
mhtml_len
;
if
(
*
pwzRelativeUrl
)
len
+=
strlenW
(
pwzRelativeUrl
)
+
ARRAY_SIZE
(
mhtml_separatorW
);
len
+=
l
strlenW
(
pwzRelativeUrl
)
+
ARRAY_SIZE
(
mhtml_separatorW
);
if
(
len
>=
cchResult
)
{
*
pcchResult
=
0
;
return
E_FAIL
;
...
...
@@ -690,7 +689,7 @@ static HRESULT WINAPI MimeHtmlProtocolInfo_CombineUrl(IInternetProtocolInfo *ifa
if
(
*
pwzRelativeUrl
)
{
memcpy
(
p
,
mhtml_separatorW
,
sizeof
(
mhtml_separatorW
));
p
+=
ARRAY_SIZE
(
mhtml_separatorW
);
strcpyW
(
p
,
pwzRelativeUrl
);
l
strcpyW
(
p
,
pwzRelativeUrl
);
}
else
{
*
p
=
0
;
}
...
...
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