1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-22 17:39:53 +03:00

Merge PR #872: Fix to show correct version in Server Manager GUI

This commit is contained in:
Davide Beatrici 2019-02-14 08:38:09 +01:00 committed by GitHub
commit 270d9f1e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1416,14 +1416,7 @@ void GetCedarVersion(char *tmp, UINT size)
UINT GetCedarVersionNumber() UINT GetCedarVersionNumber()
{ {
UINT pow = 10; return CEDAR_VERSION_MAJOR * 100 + CEDAR_VERSION_MINOR;
while (CEDAR_VERSION_MAJOR >= pow)
{
pow *= 10;
}
return CEDAR_VERSION_MAJOR * pow + CEDAR_VERSION_MINOR;
} }
// Create Cedar object // Create Cedar object