1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-01-20 02:10:10 +03:00

v4.05-9416-beta

This commit is contained in:
dnobori
2014-02-06 01:36:42 +09:00
parent 8920d01a37
commit bb853cc18b
306 changed files with 523 additions and 317 deletions

View File

@ -942,7 +942,7 @@ void SetThreadName(UINT thread_id, char *name, void *param)
}
else
{
sprintf(tmp, "%s (0x%x)", name, param);
sprintf(tmp, "%s (0x%x)", name, (UINT)param);
}
Win32SetThreadName(thread_id, tmp);
@ -1756,7 +1756,7 @@ void TimeToTm(struct tm *t, time_t time)
ret = gmtime(&time);
#else // OS_UNIX
ret = malloc(sizeof(struct tm));
memset(ret, 0, sizeof(ret));
memset(ret, 0, sizeof(struct tm));
gmtime_r(&time, ret);
#endif // OS_UNIX
@ -1795,7 +1795,7 @@ void NormalizeTm(struct tm *t)
ret = gmtime(&tmp);
#else // OS_UNIX
ret = malloc(sizeof(struct tm));
memset(ret, 0, sizeof(ret));
memset(ret, 0, sizeof(struct tm));
gmtime_r(&tmp, ret);
#endif // OS_UNIX