mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
corrected TIME_NOSECONDS handling
svn path=/trunk/; revision=7696
This commit is contained in:
parent
448af8f18a
commit
a7406cc7a7
|
@ -1,4 +1,4 @@
|
|||
/* $Id: lang.c,v 1.7 2004/01/16 23:08:38 mf Exp $
|
||||
/* $Id: lang.c,v 1.8 2004/01/16 23:19:16 mf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT : ReactOS user mode libraries
|
||||
|
@ -1103,7 +1103,7 @@ INT RosGetTimeFormat(LCID Locale, DWORD dwFlags, CONST SYSTEMTIME *lpTime, LPCWS
|
|||
}
|
||||
case 's':
|
||||
{
|
||||
if(!(dwFlags & TIME_NOSECONDS) || !(dwFlags & TIME_NOMINUTESORSECONDS))
|
||||
if(!(dwFlags & (TIME_NOSECONDS|TIME_NOMINUTESORSECONDS)))
|
||||
{
|
||||
sprintf( ch, "%.*d", nCount > 2 ? 2 : nCount, lpTime->wSecond );
|
||||
MultiByteToWideChar( CP_ACP, 0, ch, -1, Buffer, sizeof(Buffer) / sizeof(WCHAR) );
|
||||
|
|
Loading…
Reference in a new issue