Implementation of ConvertDefaultLocale32.

This commit is contained in:
Juergen Schmied 1999-02-14 09:22:12 +00:00 committed by Alexandre Julliard
parent bc1d1df097
commit 4a1dbaf602
3 changed files with 17 additions and 2 deletions

View File

@ -457,4 +457,6 @@ INT16 WINAPI GetLocaleInfo16(LCID,LCTYPE,LPSTR,INT16);
BOOL16 WINAPI GetStringType16(LCID,DWORD,LPCSTR,INT16,LPWORD); BOOL16 WINAPI GetStringType16(LCID,DWORD,LPCSTR,INT16,LPWORD);
LCID WINAPI ConvertDefaultLocale(LCID Locale);
#endif /* __WINE_WINNLS_H */ #endif /* __WINE_WINNLS_H */

View File

@ -643,7 +643,20 @@ INT16 WINAPI GetLocaleInfo16(LCID lcid,LCTYPE LCType,LPSTR buf,INT16 len)
{ {
return GetLocaleInfo32A(lcid,LCType,buf,len); return GetLocaleInfo32A(lcid,LCType,buf,len);
} }
/******************************************************************************
* ConvertDefaultLocale32 [KERNEL32.147]
*/
LCID WINAPI ConvertDefaultLocale32 (LCID lcid)
{ switch (lcid)
{ case LOCALE_SYSTEM_DEFAULT:
return GetSystemDefaultLCID();
case LOCALE_USER_DEFAULT:
return GetUserDefaultLCID();
case 0:
return MAKELCID (LANG_NEUTRAL, SUBLANG_NEUTRAL);
}
return MAKELANGID( PRIMARYLANGID(lcid), SUBLANG_NEUTRAL);
}
/****************************************************************************** /******************************************************************************
* GetLocaleInfo32A [KERNEL32.342] * GetLocaleInfo32A [KERNEL32.342]
* *

View File

@ -160,7 +160,7 @@ init MAIN_KernelInit
144 stdcall CompareStringW(long long wstr long wstr long) CompareString32W 144 stdcall CompareStringW(long long wstr long wstr long) CompareString32W
145 stub ConnectNamedPipe 145 stub ConnectNamedPipe
146 stdcall ContinueDebugEvent(long long long) ContinueDebugEvent 146 stdcall ContinueDebugEvent(long long long) ContinueDebugEvent
147 stub ConvertDefaultLocale 147 stdcall ConvertDefaultLocale (long) ConvertDefaultLocale32
148 stdcall ConvertToGlobalHandle(long) ConvertToGlobalHandle 148 stdcall ConvertToGlobalHandle(long) ConvertToGlobalHandle
149 stdcall CopyFileA(str str long) CopyFile32A 149 stdcall CopyFileA(str str long) CopyFile32A
150 stdcall CopyFileW(wstr wstr long) CopyFile32W 150 stdcall CopyFileW(wstr wstr long) CopyFile32W