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
91599d50
Commit
91599d50
authored
Sep 15, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Sep 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Implement IMimeInternational_ConvertBuffer.
parent
f2032635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
5 deletions
+44
-5
mimeintl.c
dlls/inetcomm/mimeintl.c
+44
-5
No files found.
dlls/inetcomm/mimeintl.c
View file @
91599d50
...
...
@@ -346,13 +346,52 @@ static HRESULT WINAPI MimeInternat_EncodeHeader(IMimeInternational *iface, HCHAR
}
static
HRESULT
WINAPI
MimeInternat_ConvertBuffer
(
IMimeInternational
*
iface
,
CODEPAGEID
cpiSource
,
CODEPAGEID
cpiDest
,
LPBLOB
pIn
,
LPBLOB
pOut
,
CODEPAGEID
cpiDest
,
LPBLOB
pIn
,
LPBLOB
pOut
,
ULONG
*
pcbRead
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
HRESULT
hr
;
IMultiLanguage
*
ml
;
TRACE
(
"(%p)->(%d, %d, %p, %p, %p)
\n
"
,
iface
,
cpiSource
,
cpiDest
,
pIn
,
pOut
,
pcbRead
);
*
pcbRead
=
0
;
pOut
->
cbSize
=
0
;
/* Could call mlang.ConvertINetString() to avoid the COM overhead if need be. */
hr
=
get_mlang
(
&
ml
);
if
(
SUCCEEDED
(
hr
))
{
DWORD
mode
=
0
;
UINT
in_size
=
pIn
->
cbSize
,
out_size
;
hr
=
IMultiLanguage_ConvertString
(
ml
,
&
mode
,
cpiSource
,
cpiDest
,
pIn
->
pBlobData
,
&
in_size
,
NULL
,
&
out_size
);
if
(
hr
==
S_OK
)
/* S_FALSE means the conversion could not be performed */
{
pOut
->
pBlobData
=
CoTaskMemAlloc
(
out_size
);
if
(
!
pOut
->
pBlobData
)
hr
=
E_OUTOFMEMORY
;
else
{
mode
=
0
;
in_size
=
pIn
->
cbSize
;
hr
=
IMultiLanguage_ConvertString
(
ml
,
&
mode
,
cpiSource
,
cpiDest
,
pIn
->
pBlobData
,
&
in_size
,
pOut
->
pBlobData
,
&
out_size
);
if
(
hr
==
S_OK
)
{
*
pcbRead
=
in_size
;
pOut
->
cbSize
=
out_size
;
}
else
CoTaskMemFree
(
pOut
->
pBlobData
);
}
}
IMultiLanguage_Release
(
ml
);
}
return
hr
;
}
static
HRESULT
WINAPI
MimeInternat_ConvertString
(
IMimeInternational
*
iface
,
CODEPAGEID
cpiSource
,
...
...
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