1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +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 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