fix VC7 warnings

This commit is contained in:
Chris Danford
2004-03-21 17:23:18 +00:00
parent e088d48fe7
commit d985ca5a74
@@ -206,15 +206,14 @@ void ArchHooks_Win32::SetTime( tm newtime )
{ {
SYSTEMTIME st; SYSTEMTIME st;
ZERO( st ); ZERO( st );
st.wYear = newtime.tm_year+1900; st.wYear = (WORD)newtime.tm_year+1900;
st.wMonth = newtime.tm_mon+1; st.wMonth = (WORD)newtime.tm_mon+1;
st.wDay = newtime.tm_mday; st.wDay = (WORD)newtime.tm_mday;
st.wHour = newtime.tm_hour; st.wHour = (WORD)newtime.tm_hour;
st.wMinute = newtime.tm_min; st.wMinute = (WORD)newtime.tm_min;
st.wSecond = newtime.tm_sec; st.wSecond = (WORD)newtime.tm_sec;
st.wMilliseconds = 0; st.wMilliseconds = 0;
BOOL b = SetLocalTime( &st ); SetLocalTime( &st );
DWORD dw = GetLastError();
} }
/* /*