1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-25 17:49:52 +03:00

Fix GetCedarVersionNumber()

This commit is contained in:
parly 2019-02-14 16:04:16 +09:00
parent d790223700
commit 5a7e4693fc

View File

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