Commit 2f2891e5 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fix _strtime implementation in Hindi locale.

parent 0e9431b8
......@@ -611,7 +611,18 @@ int CDECL _wstrdate_s(wchar_t* date, size_t size)
*/
char* CDECL _strtime(char* time)
{
GetTimeFormatA(LOCALE_NEUTRAL, 0, NULL, "HH':'mm':'ss", time, 9);
SYSTEMTIME st;
GetLocalTime(&st);
time[0] = '0' + st.wHour / 10;
time[1] = '0' + st.wHour % 10;
time[2] = ':';
time[3] = '0' + st.wMinute / 10;
time[4] = '0' + st.wMinute % 10;
time[5] = ':';
time[6] = '0' + st.wSecond / 10;
time[7] = '0' + st.wSecond % 10;
time[8] = 0;
return time;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment