Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c571be83
Commit
c571be83
authored
Sep 13, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: GetUserDefaultUILanguage() is not available in NT4.
parent
3b7fb23c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
dom.c
dlls/mshtml/tests/dom.c
+14
-6
No files found.
dlls/mshtml/tests/dom.c
View file @
c571be83
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "objsafe.h"
#include "objsafe.h"
static
INT
(
WINAPI
*
pLCIDToLocaleName
)(
LCID
,
LPWSTR
,
INT
,
DWORD
);
static
INT
(
WINAPI
*
pLCIDToLocaleName
)(
LCID
,
LPWSTR
,
INT
,
DWORD
);
static
LANGID
(
WINAPI
*
pGetUserDefaultUILanguage
)(
void
);
static
const
char
doc_blank
[]
=
"<html></html>"
;
static
const
char
doc_blank
[]
=
"<html></html>"
;
static
const
char
doc_str1
[]
=
"<html><body>test</body></html>"
;
static
const
char
doc_str1
[]
=
"<html><body>test</body></html>"
;
...
@@ -4133,11 +4134,16 @@ static void test_navigator(IHTMLDocument2 *doc)
...
@@ -4133,11 +4134,16 @@ static void test_navigator(IHTMLDocument2 *doc)
test_language_string
(
bstr
,
LOCALE_SYSTEM_DEFAULT
);
test_language_string
(
bstr
,
LOCALE_SYSTEM_DEFAULT
);
SysFreeString
(
bstr
);
SysFreeString
(
bstr
);
bstr
=
NULL
;
if
(
pGetUserDefaultUILanguage
)
hres
=
IOmNavigator_get_browserLanguage
(
navigator
,
&
bstr
);
{
ok
(
hres
==
S_OK
,
"get_browserLanguage failed: %08x
\n
"
,
hres
);
bstr
=
NULL
;
test_language_string
(
bstr
,
GetUserDefaultUILanguage
());
hres
=
IOmNavigator_get_browserLanguage
(
navigator
,
&
bstr
);
SysFreeString
(
bstr
);
ok
(
hres
==
S_OK
,
"get_browserLanguage failed: %08x
\n
"
,
hres
);
test_language_string
(
bstr
,
pGetUserDefaultUILanguage
());
SysFreeString
(
bstr
);
}
else
win_skip
(
"GetUserDefaultUILanguage not available
\n
"
);
bstr
=
NULL
;
bstr
=
NULL
;
hres
=
IOmNavigator_get_userLanguage
(
navigator
,
&
bstr
);
hres
=
IOmNavigator_get_userLanguage
(
navigator
,
&
bstr
);
...
@@ -6155,7 +6161,9 @@ static void run_domtest(const char *str, domtest_t test)
...
@@ -6155,7 +6161,9 @@ static void run_domtest(const char *str, domtest_t test)
START_TEST
(
dom
)
START_TEST
(
dom
)
{
{
pLCIDToLocaleName
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"kernel32.dll"
),
"LCIDToLocaleName"
);
HMODULE
hkernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pLCIDToLocaleName
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"LCIDToLocaleName"
);
pGetUserDefaultUILanguage
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetUserDefaultUILanguage"
);
CoInitialize
(
NULL
);
CoInitialize
(
NULL
);
...
...
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