1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Mayaqua.c: fix code style broken by #560

This commit is contained in:
Davide Beatrici 2018-07-21 10:27:21 +02:00
parent 1b4cc1fb8d
commit 879dc8f6b8

View File

@ -2145,7 +2145,10 @@ bool StrToSystem(SYSTEMTIME *s, char *str)
} }
if (StrLen(str) != 13) if (StrLen(str) != 13)
{ {
if (StrLen(str) != 15) return false; if (StrLen(str) != 15)
{
return false;
}
// Year has 4 digits - save first two and use the rest // Year has 4 digits - save first two and use the rest
// as if it had two digits // as if it had two digits
@ -2169,7 +2172,8 @@ bool StrToSystem(SYSTEMTIME *s, char *str)
second[3] = {str[10], str[11], 0}; second[3] = {str[10], str[11], 0};
Zero(s, sizeof(SYSTEMTIME)); Zero(s, sizeof(SYSTEMTIME));
s->wYear = ToInt(year); s->wYear = ToInt(year);
if( fourdigityear ) { if (fourdigityear)
{
s->wYear += ToInt(century) * 100; s->wYear += ToInt(century) * 100;
} }
else if (s->wYear >= 60) else if (s->wYear >= 60)