Module: wine Branch: master Commit: 95142cad53df5d67f5061f9c7861b91a4c179f18 URL: http://source.winehq.org/git/wine.git/?a=commit;h=95142cad53df5d67f5061f9c78...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri Feb 28 09:13:56 2014 +0400
kernel32: Partial implementation for GetCalendarInfoEx().
---
.../api-ms-win-core-localization-l1-2-0.spec | 2 +- dlls/kernel32/kernel32.spec | 1 + dlls/kernel32/time.c | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/dlls/api-ms-win-core-localization-l1-2-0/api-ms-win-core-localization-l1-2-0.spec b/dlls/api-ms-win-core-localization-l1-2-0/api-ms-win-core-localization-l1-2-0.spec index 7c6f6fe..7b3c86f 100644 --- a/dlls/api-ms-win-core-localization-l1-2-0/api-ms-win-core-localization-l1-2-0.spec +++ b/dlls/api-ms-win-core-localization-l1-2-0/api-ms-win-core-localization-l1-2-0.spec @@ -9,7 +9,7 @@ @ stdcall GetACP() kernel32.GetACP @ stdcall GetCPInfo(long ptr) kernel32.GetCPInfo @ stdcall GetCPInfoExW(long long ptr) kernel32.GetCPInfoExW -@ stub GetCalendarInfoEx +@ stdcall GetCalendarInfoEx(wstr long ptr long ptr long ptr) kernel32.GetCalendarInfoEx @ stdcall GetCalendarInfoW(long long long ptr long ptr) kernel32.GetCalendarInfoW @ stub GetFileMUIInfo @ stub GetFileMUIPath diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index f7f3320..f8d3a80 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -442,6 +442,7 @@ @ stdcall GetCPInfoExW(long long ptr) @ stdcall GetCalendarInfoA(long long long ptr long ptr) @ stdcall GetCalendarInfoW(long long long ptr long ptr) +@ stdcall GetCalendarInfoEx(wstr long ptr long ptr long ptr) # @ stub GetComPlusPackageInstallStatus @ stdcall GetCommConfig(long ptr long) @ stdcall GetCommMask(long ptr) diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c index 77c71cb..4dc5d0e 100644 --- a/dlls/kernel32/time.c +++ b/dlls/kernel32/time.c @@ -798,6 +798,18 @@ int WINAPI GetCalendarInfoW(LCID Locale, CALID Calendar, CALTYPE CalType, }
/********************************************************************* + * GetCalendarInfoEx (KERNEL32.@) + */ +int WINAPI GetCalendarInfoEx(LPCWSTR locale, CALID calendar, LPCWSTR lpReserved, CALTYPE caltype, + LPWSTR data, int len, DWORD *value) +{ + LCID lcid = LocaleNameToLCID(locale, 0); + FIXME("(%s, %d, %p, 0x%08x, %p, %d, %p): semi-stub\n", debugstr_w(locale), calendar, lpReserved, caltype, + data, len, value); + return GetCalendarInfoW(lcid, calendar, caltype, data, len, value); +} + +/********************************************************************* * SetCalendarInfoA (KERNEL32.@) * */