diff options
Diffstat (limited to 'CPP/Windows/NationalTime.cpp')
-rw-r--r-- | CPP/Windows/NationalTime.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/Windows/NationalTime.cpp b/CPP/Windows/NationalTime.cpp index 0dcd31e..d3c38de 100644 --- a/CPP/Windows/NationalTime.cpp +++ b/CPP/Windows/NationalTime.cpp | |||
@@ -16,8 +16,8 @@ bool MyGetTimeFormat(LCID locale, DWORD flags, CONST SYSTEMTIME *time, | |||
16 | if (numChars == 0) | 16 | if (numChars == 0) |
17 | return false; | 17 | return false; |
18 | numChars = ::GetTimeFormat(locale, flags, time, format, | 18 | numChars = ::GetTimeFormat(locale, flags, time, format, |
19 | resultString.GetBuf(numChars), numChars + 1); | 19 | resultString.GetBuf((unsigned)numChars), numChars + 1); |
20 | resultString.ReleaseBuf_CalcLen(numChars); | 20 | resultString.ReleaseBuf_CalcLen((unsigned)numChars); |
21 | return (numChars != 0); | 21 | return (numChars != 0); |
22 | } | 22 | } |
23 | 23 | ||
@@ -29,8 +29,8 @@ bool MyGetDateFormat(LCID locale, DWORD flags, CONST SYSTEMTIME *time, | |||
29 | if (numChars == 0) | 29 | if (numChars == 0) |
30 | return false; | 30 | return false; |
31 | numChars = ::GetDateFormat(locale, flags, time, format, | 31 | numChars = ::GetDateFormat(locale, flags, time, format, |
32 | resultString.GetBuf(numChars), numChars + 1); | 32 | resultString.GetBuf((unsigned)numChars), numChars + 1); |
33 | resultString.ReleaseBuf_CalcLen(numChars); | 33 | resultString.ReleaseBuf_CalcLen((unsigned)numChars); |
34 | return (numChars != 0); | 34 | return (numChars != 0); |
35 | } | 35 | } |
36 | 36 | ||