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
e36d0d2e
Commit
e36d0d2e
authored
Jul 31, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IOmNavigator::get_*Language implementations.
parent
7d4e9f77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
6 deletions
+38
-6
omnavigator.c
dlls/mshtml/omnavigator.c
+38
-6
No files found.
dlls/mshtml/omnavigator.c
View file @
e36d0d2e
...
...
@@ -621,25 +621,57 @@ static HRESULT WINAPI OmNavigator_get_cpuClass(IOmNavigator *iface, BSTR *p)
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
get_language_string
(
LCID
lcid
,
BSTR
*
p
)
{
BSTR
ret
;
int
len
;
len
=
LCIDToLocaleName
(
lcid
,
NULL
,
0
,
0
);
if
(
!
len
)
{
WARN
(
"LCIDToLocaleName failed: %u
\n
"
,
GetLastError
());
return
E_FAIL
;
}
ret
=
SysAllocStringLen
(
NULL
,
len
-
1
);
if
(
!
ret
)
return
E_OUTOFMEMORY
;
len
=
LCIDToLocaleName
(
lcid
,
ret
,
len
,
0
);
if
(
!
len
)
{
WARN
(
"LCIDToLocaleName failed: %u
\n
"
,
GetLastError
());
SysFreeString
(
ret
);
return
E_FAIL
;
}
*
p
=
ret
;
return
S_OK
;
}
static
HRESULT
WINAPI
OmNavigator_get_systemLanguage
(
IOmNavigator
*
iface
,
BSTR
*
p
)
{
OmNavigator
*
This
=
impl_from_IOmNavigator
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_language_string
(
LOCALE_SYSTEM_DEFAULT
,
p
);
}
static
HRESULT
WINAPI
OmNavigator_get_browserLanguage
(
IOmNavigator
*
iface
,
BSTR
*
p
)
{
OmNavigator
*
This
=
impl_from_IOmNavigator
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_language_string
(
GetUserDefaultUILanguage
(),
p
);
}
static
HRESULT
WINAPI
OmNavigator_get_userLanguage
(
IOmNavigator
*
iface
,
BSTR
*
p
)
{
OmNavigator
*
This
=
impl_from_IOmNavigator
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_language_string
(
LOCALE_USER_DEFAULT
,
p
);
}
static
HRESULT
WINAPI
OmNavigator_get_platform
(
IOmNavigator
*
iface
,
BSTR
*
p
)
...
...
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