Module: wine Branch: master Commit: afa53a37a4694da38597fd352886256a223e1e98 URL: http://source.winehq.org/git/wine.git/?a=commit;h=afa53a37a4694da38597fd3528...
Author: Louis Lenders xerox_xerox2000@yahoo.co.uk Date: Fri Aug 27 23:38:06 2010 +0200
kernel32: Add stub for GetUserDefaultLocaleName.
---
dlls/kernel32/kernel32.spec | 1 + dlls/kernel32/locale.c | 6 ++++++ include/winnls.h | 1 + 3 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 601644f..fc9e3cc 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -660,6 +660,7 @@ @ stdcall GetTimeZoneInformation(ptr) @ stdcall GetUserDefaultLCID() @ stdcall GetUserDefaultLangID() +@ stdcall GetUserDefaultLocaleName(ptr long) @ stdcall GetUserDefaultUILanguage() @ stdcall GetUserGeoID(long) @ stub GetVDMCurrentDirectories diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c index 76076ea..8d8042b 100644 --- a/dlls/kernel32/locale.c +++ b/dlls/kernel32/locale.c @@ -3798,3 +3798,9 @@ INT WINAPI GetGeoInfoA(GEOID GeoId, GEOTYPE GeoType, LPSTR lpGeoData, FIXME("%d %d %p %d %d\n", GeoId, GeoType, lpGeoData, cchData, language); return 0; } + +INT WINAPI GetUserDefaultLocaleName(LPWSTR localename, int buffersize) +{ + FIXME("(%p, %d) stub!\n", localename, buffersize); + return 0; +} diff --git a/include/winnls.h b/include/winnls.h index 47c81d9..b75e24a 100644 --- a/include/winnls.h +++ b/include/winnls.h @@ -767,6 +767,7 @@ WINBASEAPI INT WINAPI GetTimeFormatW(LCID,DWORD,const SYSTEMTIME*,LPCWST #define GetTimeFormat WINELIB_NAME_AW(GetTimeFormat) WINBASEAPI LANGID WINAPI GetUserDefaultLangID(void); WINBASEAPI LCID WINAPI GetUserDefaultLCID(void); +WINBASEAPI INT WINAPI GetUserDefaultLocaleName(LPWSTR,int); WINBASEAPI LANGID WINAPI GetUserDefaultUILanguage(void); WINBASEAPI GEOID WINAPI GetUserGeoID(GEOCLASS); WINBASEAPI BOOL WINAPI IsDBCSLeadByte(BYTE);