From d985ca5a746af08b18ec4d8a404cd934a8d8f15c Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 21 Mar 2004 17:23:18 +0000 Subject: [PATCH] fix VC7 warnings --- stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp index aec645e2a0..d7415b63ac 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp @@ -206,15 +206,14 @@ void ArchHooks_Win32::SetTime( tm newtime ) { SYSTEMTIME st; ZERO( st ); - st.wYear = newtime.tm_year+1900; - st.wMonth = newtime.tm_mon+1; - st.wDay = newtime.tm_mday; - st.wHour = newtime.tm_hour; - st.wMinute = newtime.tm_min; - st.wSecond = newtime.tm_sec; + st.wYear = (WORD)newtime.tm_year+1900; + st.wMonth = (WORD)newtime.tm_mon+1; + st.wDay = (WORD)newtime.tm_mday; + st.wHour = (WORD)newtime.tm_hour; + st.wMinute = (WORD)newtime.tm_min; + st.wSecond = (WORD)newtime.tm_sec; st.wMilliseconds = 0; - BOOL b = SetLocalTime( &st ); - DWORD dw = GetLastError(); + SetLocalTime( &st ); } /*