1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-24 17:19:52 +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,10 +2145,13 @@ 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
// Year has 4 digits - save first two and use the rest
// as if it had two digits
fourdigityear = true;
century[0] = str[0];
century[1] = str[1];
@ -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)