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
1c3c9f06
Commit
1c3c9f06
authored
Jan 17, 2016
by
Stefan Leichter
Committed by
Alexandre Julliard
Jan 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add stub for GetSystemPreferredUILanguages.
Signed-off-by:
Stefan Leichter
<
Stefan.Leichter@camLine.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c160ad9e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
3 deletions
+30
-3
api-ms-win-core-localization-l1-2-0.spec
...alization-l1-2-0/api-ms-win-core-localization-l1-2-0.spec
+1
-1
api-ms-win-core-localization-l1-2-1.spec
...alization-l1-2-1/api-ms-win-core-localization-l1-2-1.spec
+1
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
locale.c
dlls/kernel32/locale.c
+26
-0
winnls.h
include/winnls.h
+1
-0
No files found.
dlls/api-ms-win-core-localization-l1-2-0/api-ms-win-core-localization-l1-2-0.spec
View file @
1c3c9f06
...
...
@@ -23,7 +23,7 @@
@ stub GetProcessPreferredUILanguages
@ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID
@ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID
@ st
ub
GetSystemPreferredUILanguages
@ st
dcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.
GetSystemPreferredUILanguages
@ stdcall GetThreadLocale() kernel32.GetThreadLocale
@ stdcall GetThreadPreferredUILanguages(long ptr ptr ptr) kernel32.GetThreadPreferredUILanguages
@ stdcall GetThreadUILanguage() kernel32.GetThreadUILanguage
...
...
dlls/api-ms-win-core-localization-l1-2-1/api-ms-win-core-localization-l1-2-1.spec
View file @
1c3c9f06
...
...
@@ -24,7 +24,7 @@
@ stub GetProcessPreferredUILanguages
@ stdcall GetSystemDefaultLCID() kernel32.GetSystemDefaultLCID
@ stdcall GetSystemDefaultLangID() kernel32.GetSystemDefaultLangID
@ st
ub
GetSystemPreferredUILanguages
@ st
dcall GetSystemPreferredUILanguages(long ptr ptr ptr) kernel32.
GetSystemPreferredUILanguages
@ stdcall GetThreadLocale() kernel32.GetThreadLocale
@ stdcall GetThreadPreferredUILanguages(long ptr ptr ptr) kernel32.GetThreadPreferredUILanguages
@ stdcall GetThreadUILanguage() kernel32.GetThreadUILanguage
...
...
dlls/kernel32/kernel32.spec
View file @
1c3c9f06
...
...
@@ -824,7 +824,7 @@
@ stdcall GetSystemFirmwareTable(long long ptr long)
@ stdcall GetSystemInfo(ptr)
@ stdcall GetSystemPowerStatus(ptr)
# @ stub GetSystemPreferredUILanguages
@ stdcall GetSystemPreferredUILanguages(long ptr ptr ptr)
@ stdcall GetSystemRegistryQuota(ptr ptr)
@ stdcall GetSystemTime(ptr)
@ stdcall GetSystemTimeAdjustment(ptr ptr ptr)
...
...
dlls/kernel32/locale.c
View file @
1c3c9f06
...
...
@@ -1049,6 +1049,32 @@ INT WINAPI GetSystemDefaultLocaleName(LPWSTR localename, INT len)
}
/***********************************************************************
* GetSystemPreferredUILanguages (KERNEL32.@)
*/
BOOL
WINAPI
GetSystemPreferredUILanguages
(
DWORD
flags
,
ULONG
*
count
,
WCHAR
*
buffer
,
ULONG
*
size
)
{
if
(
flags
&
~
(
MUI_LANGUAGE_NAME
|
MUI_LANGUAGE_ID
|
MUI_MACHINE_LANGUAGE_SETTINGS
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
((
flags
&
MUI_LANGUAGE_NAME
)
&&
(
flags
&
MUI_LANGUAGE_ID
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
*
size
&&
!
buffer
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
FIXME
(
"(0x%x %p %p %p) stub
\n
"
,
flags
,
count
,
buffer
,
size
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/***********************************************************************
* GetUserDefaultUILanguage (KERNEL32.@)
*
* Get the default user interface language Id for the current user.
...
...
include/winnls.h
View file @
1c3c9f06
...
...
@@ -906,6 +906,7 @@ WINBASEAPI BOOL WINAPI GetStringTypeExW(LCID,DWORD,LPCWSTR,INT,LPWORD);
WINBASEAPI
LANGID
WINAPI
GetSystemDefaultLangID
(
void
);
WINBASEAPI
LCID
WINAPI
GetSystemDefaultLCID
(
void
);
WINBASEAPI
LANGID
WINAPI
GetSystemDefaultUILanguage
(
void
);
WINBASEAPI
BOOL
WINAPI
GetSystemPreferredUILanguages
(
DWORD
,
ULONG
*
,
WCHAR
*
,
ULONG
*
);
WINBASEAPI
LCID
WINAPI
GetThreadLocale
(
void
);
WINBASEAPI
INT
WINAPI
GetTimeFormatA
(
LCID
,
DWORD
,
const
SYSTEMTIME
*
,
LPCSTR
,
LPSTR
,
INT
);
WINBASEAPI
INT
WINAPI
GetTimeFormatEx
(
LPCWSTR
,
DWORD
,
const
SYSTEMTIME
*
,
LPCWSTR
,
LPWSTR
,
INT
);
...
...
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