cleanup
This commit is contained in:
@@ -126,12 +126,12 @@ void ArchHooks_Win32::SetTime( tm newtime )
|
|||||||
SYSTEMTIME st;
|
SYSTEMTIME st;
|
||||||
ZERO( st );
|
ZERO( st );
|
||||||
st.wYear = (WORD)newtime.tm_year+1900;
|
st.wYear = (WORD)newtime.tm_year+1900;
|
||||||
st.wMonth = (WORD)newtime.tm_mon+1;
|
st.wMonth = (WORD)newtime.tm_mon+1;
|
||||||
st.wDay = (WORD)newtime.tm_mday;
|
st.wDay = (WORD)newtime.tm_mday;
|
||||||
st.wHour = (WORD)newtime.tm_hour;
|
st.wHour = (WORD)newtime.tm_hour;
|
||||||
st.wMinute = (WORD)newtime.tm_min;
|
st.wMinute = (WORD)newtime.tm_min;
|
||||||
st.wSecond = (WORD)newtime.tm_sec;
|
st.wSecond = (WORD)newtime.tm_sec;
|
||||||
st.wMilliseconds = 0;
|
st.wMilliseconds = 0;
|
||||||
SetLocalTime( &st );
|
SetLocalTime( &st );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user