mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Mayaqua.c: fix code style broken by #560
This commit is contained in:
parent
1b4cc1fb8d
commit
879dc8f6b8
@ -2145,7 +2145,10 @@ bool StrToSystem(SYSTEMTIME *s, char *str)
|
||||
}
|
||||
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
|
||||
// as if it had two digits
|
||||
@ -2169,7 +2172,8 @@ bool StrToSystem(SYSTEMTIME *s, char *str)
|
||||
second[3] = {str[10], str[11], 0};
|
||||
Zero(s, sizeof(SYSTEMTIME));
|
||||
s->wYear = ToInt(year);
|
||||
if( fourdigityear ) {
|
||||
if (fourdigityear)
|
||||
{
|
||||
s->wYear += ToInt(century) * 100;
|
||||
}
|
||||
else if (s->wYear >= 60)
|
||||
|
Loading…
Reference in New Issue
Block a user