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
e51dc8f2
Commit
e51dc8f2
authored
Jun 12, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jun 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang: Implement IMultiLanguage_GetRfc1766Info.
parent
131ab8d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
mlang.c
dlls/mlang/mlang.c
+32
-2
No files found.
dlls/mlang/mlang.c
View file @
e51dc8f2
...
...
@@ -2536,8 +2536,38 @@ static HRESULT WINAPI fnIMultiLanguage_GetRfc1766Info(
LCID
Locale
,
PRFC1766INFO
pRfc1766Info
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
LCTYPE
type
=
LOCALE_SLANGUAGE
;
TRACE
(
"(%p, 0x%04x, %p)
\n
"
,
iface
,
Locale
,
pRfc1766Info
);
if
(
!
pRfc1766Info
)
return
E_INVALIDARG
;
if
((
PRIMARYLANGID
(
Locale
)
==
LANG_ENGLISH
)
||
(
PRIMARYLANGID
(
Locale
)
==
LANG_CHINESE
)
||
(
PRIMARYLANGID
(
Locale
)
==
LANG_ARABIC
))
{
if
(
!
SUBLANGID
(
Locale
))
type
=
LOCALE_SENGLANGUAGE
;
/* suppress country */
}
else
{
if
(
!
SUBLANGID
(
Locale
))
{
TRACE
(
"SUBLANGID missing in 0x%04x
\n
"
,
Locale
);
return
E_FAIL
;
}
}
pRfc1766Info
->
lcid
=
Locale
;
pRfc1766Info
->
wszRfc1766
[
0
]
=
0
;
pRfc1766Info
->
wszLocaleName
[
0
]
=
0
;
if
((
!
lcid_to_rfc1766W
(
Locale
,
pRfc1766Info
->
wszRfc1766
,
MAX_RFC1766_NAME
))
&&
(
GetLocaleInfoW
(
Locale
,
type
,
pRfc1766Info
->
wszLocaleName
,
MAX_LOCALE_NAME
)
>
0
))
return
S_OK
;
/* Locale not supported */
return
E_INVALIDARG
;
}
static
HRESULT
WINAPI
fnIMultiLanguage_CreateConvertCharset
(
...
...
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