static WNDPROC pOldWndProc = NULL;
BOOL
-SystemSetTime(LPSYSTEMTIME lpSystemTime,
- BOOL SystemTime)
+SystemSetLocalTime(LPSYSTEMTIME lpSystemTime)
{
HANDLE hToken;
DWORD PrevSize;
{
/*
* We successfully enabled it, we're permitted to change the time.
- * Check the second parameter for SystemTime and if TRUE set System Time.
- * Otherwise, if FALSE set the Local Time.
* Call SetLocalTime twice to ensure correct results.
*/
- if (SystemTime)
- {
- Ret = SetSystemTime(lpSystemTime);
- }
- else
- {
- Ret = SetLocalTime(lpSystemTime) &&
- SetLocalTime(lpSystemTime);
- }
+ Ret = SetLocalTime(lpSystemTime) &&
+ SetLocalTime(lpSystemTime);
/*
* For the sake of security, restore the previous status again
(WPARAM)&Time,
0))
{
- /* Set Local Time with SystemTime = FALSE */
- SystemSetTime(&Time, FALSE);
+ SystemSetLocalTime(&Time);
SetWindowLongPtrW(hwnd,
DWLP_MSGRESULT,