diff --git a/base/services/w32time/register.c b/base/services/w32time/register.c index 205a288bb04..f47e2a01e23 100644 --- a/base/services/w32time/register.c +++ b/base/services/w32time/register.c @@ -236,7 +236,7 @@ SetNtpClientValues(VOID) goto done; } - dwValue = 0x00093a80; + dwValue = W32TIME_POLL_INTERVAL; dwError = RegSetValueExW(hKey, L"SpecialPollInterval", 0, diff --git a/base/services/w32time/w32time.c b/base/services/w32time/w32time.c index 0d5508a7b2c..f6a38c871c9 100644 --- a/base/services/w32time/w32time.c +++ b/base/services/w32time/w32time.c @@ -153,7 +153,7 @@ GetIntervalSetting(VOID) } if (lRet != ERROR_SUCCESS || dwData < 120) - return 9 * 60 * 60; // 9 hours, because Windows uses 9 hrs, 6 mins and 8 seconds by default. + return W32TIME_POLL_INTERVAL; else return dwData; } diff --git a/base/services/w32time/w32time.h b/base/services/w32time/w32time.h index 0bd729e6d6f..dcbb10a6f68 100644 --- a/base/services/w32time/w32time.h +++ b/base/services/w32time/w32time.h @@ -16,6 +16,7 @@ #define MAX_VALUE_NAME 16383 #define NTPPORT 123 +#define W32TIME_POLL_INTERVAL (4 * 60 * 60) // 4 hours. /* ntpclient.c */