1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-06 07:44:57 +03:00

Merge PR #650: resolve several issues identified by coverity

This commit is contained in:
Davide Beatrici
2018-08-13 22:32:28 +02:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@ -133,11 +133,10 @@ static EVENT *halt_tick_event = NULL;
// Get the high-resolution time
UINT64 TickHighres64()
{
UINT64 ret = 0;
#ifdef OS_WIN32
ret = (UINT64)(MsGetHiResTimeSpan(MsGetHiResCounter()) * 1000.0f);
return (UINT64)(MsGetHiResTimeSpan(MsGetHiResCounter()) * 1000.0f);
#else // OS_WIN32
@ -145,7 +144,6 @@ UINT64 TickHighres64()
#endif // OS_WIN32
return ret;
}
// Convert the Tick value to time