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
8b68a629
Commit
8b68a629
authored
Sep 10, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Sep 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Implement IMimeInternational_GetDefaultCharset.
parent
3fe7ea12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
mimeintl.c
dlls/inetcomm/mimeintl.c
+17
-2
No files found.
dlls/inetcomm/mimeintl.c
View file @
8b68a629
...
...
@@ -54,6 +54,7 @@ typedef struct
struct
list
charsets
;
LONG
next_charset_handle
;
HCHARSET
default_charset
;
}
internat
;
static
inline
internat
*
impl_from_IMimeInternational
(
IMimeInternational
*
iface
)
...
...
@@ -116,8 +117,21 @@ static HRESULT WINAPI MimeInternat_SetDefaultCharset(IMimeInternational *iface,
static
HRESULT
WINAPI
MimeInternat_GetDefaultCharset
(
IMimeInternational
*
iface
,
LPHCHARSET
phCharset
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
internat
*
This
=
impl_from_IMimeInternational
(
iface
);
HRESULT
hr
=
S_OK
;
TRACE
(
"(%p)->(%p)
\n
"
,
iface
,
phCharset
);
if
(
This
->
default_charset
==
NULL
)
{
HCHARSET
hcs
;
hr
=
IMimeInternational_GetCodePageCharset
(
iface
,
GetACP
(),
CHARSET_BODY
,
&
hcs
);
if
(
SUCCEEDED
(
hr
))
InterlockedCompareExchangePointer
(
&
This
->
default_charset
,
hcs
,
NULL
);
}
*
phCharset
=
This
->
default_charset
;
return
hr
;
}
static
HRESULT
mlang_getcodepageinfo
(
UINT
cp
,
MIMECPINFO
*
mlang_cp_info
)
...
...
@@ -389,6 +403,7 @@ HRESULT MimeInternational_Construct(IMimeInternational **internat)
list_init
(
&
global_internat
->
charsets
);
global_internat
->
next_charset_handle
=
0
;
global_internat
->
default_charset
=
NULL
;
*
internat
=
(
IMimeInternational
*
)
&
global_internat
->
lpVtbl
;
...
...
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