mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:21:38 +00:00
use return value of GetLocaleInfoW() in GetTimeFormatW()
svn path=/trunk/; revision=7665
This commit is contained in:
parent
41fd456b47
commit
17198161b0
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: lang.c,v 1.5 2004/01/14 21:41:24 rcampbell Exp $
|
||||
/* $Id: lang.c,v 1.6 2004/01/15 22:10:29 mf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT : ReactOS user mode libraries
|
||||
|
@ -1208,7 +1208,10 @@ GetTimeFormatW (
|
|||
{
|
||||
if (dwFlags & LOCALE_NOUSEROVERRIDE)
|
||||
Locale = GetSystemDefaultLCID();
|
||||
GetLocaleInfoW(Locale, LOCALE_STIMEFORMAT, Buffer, 40);
|
||||
|
||||
if (!GetLocaleInfoW(Locale, LOCALE_STIMEFORMAT, Buffer, 40))
|
||||
return 0;
|
||||
|
||||
lpFormat = Buffer;
|
||||
}
|
||||
if (dwFlags & LOCALE_NOUSEROVERRIDE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue