mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Remove "WORD", use "USHORT" everywhere for consistency
This commit is contained in:
parent
69cd39616b
commit
09f24e46b3
@ -1903,7 +1903,7 @@ void UINT64ToSystem(SYSTEMTIME *st, UINT64 sec64)
|
|||||||
sec = (UINT)tmp64;
|
sec = (UINT)tmp64;
|
||||||
time = (time_64t)sec;
|
time = (time_64t)sec;
|
||||||
TimeToSystem(st, time);
|
TimeToSystem(st, time);
|
||||||
st->wMilliseconds = (WORD)millisec;
|
st->wMilliseconds = (USHORT)millisec;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert the SYSTEMTIME to UINT64
|
// Convert the SYSTEMTIME to UINT64
|
||||||
|
@ -185,7 +185,6 @@ typedef signed int INT;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 16bit integer type
|
// 16bit integer type
|
||||||
typedef unsigned short WORD;
|
|
||||||
typedef unsigned short USHORT;
|
typedef unsigned short USHORT;
|
||||||
|
|
||||||
// 8bit integer type
|
// 8bit integer type
|
||||||
@ -287,14 +286,14 @@ typedef struct OS_INFO
|
|||||||
#ifndef WINDOWS_H
|
#ifndef WINDOWS_H
|
||||||
typedef struct SYSTEMTIME
|
typedef struct SYSTEMTIME
|
||||||
{
|
{
|
||||||
WORD wYear;
|
USHORT wYear;
|
||||||
WORD wMonth;
|
USHORT wMonth;
|
||||||
WORD wDayOfWeek;
|
USHORT wDayOfWeek;
|
||||||
WORD wDay;
|
USHORT wDay;
|
||||||
WORD wHour;
|
USHORT wHour;
|
||||||
WORD wMinute;
|
USHORT wMinute;
|
||||||
WORD wSecond;
|
USHORT wSecond;
|
||||||
WORD wMilliseconds;
|
USHORT wMilliseconds;
|
||||||
} SYSTEMTIME;
|
} SYSTEMTIME;
|
||||||
#endif // WINDOWS_H
|
#endif // WINDOWS_H
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user