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
49a54568
Commit
49a54568
authored
Sep 15, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Also log the current thread and default user UI languages.
parent
0ae12c4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
main.c
programs/winetest/main.c
+12
-0
No files found.
programs/winetest/main.c
View file @
49a54568
...
...
@@ -391,9 +391,21 @@ static void print_version (void)
static
void
print_language
(
void
)
{
HMODULE
hkernel32
;
LANGID
(
WINAPI
*
pGetUserDefaultUILanguage
)(
void
);
LANGID
(
WINAPI
*
pGetThreadUILanguage
)(
void
);
xprintf
(
" SystemDefaultLCID=%x
\n
"
,
GetSystemDefaultLCID
());
xprintf
(
" UserDefaultLCID=%x
\n
"
,
GetUserDefaultLCID
());
xprintf
(
" ThreadLocale=%x
\n
"
,
GetThreadLocale
());
hkernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pGetUserDefaultUILanguage
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetUserDefaultUILanguage"
);
pGetThreadUILanguage
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"GetThreadUILanguage"
);
if
(
pGetUserDefaultUILanguage
)
xprintf
(
" UserDefaultUILanguage=%x
\n
"
,
pGetUserDefaultUILanguage
());
if
(
pGetThreadUILanguage
)
xprintf
(
" ThreadUILanguage=%x
\n
"
,
pGetThreadUILanguage
());
}
static
inline
int
is_dot_dir
(
const
char
*
x
)
...
...
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