https://git.reactos.org/?p=reactos.git;a=commitdiff;h=622c7ed6091419910669f07ae7f0635da4ee8017

commit 622c7ed6091419910669f07ae7f0635da4ee8017
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Thu Apr 9 23:20:54 2020 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Thu Apr 9 23:22:40 2020 +0200

    [W32TIME][BOOTDATA] Export SvchostEntry_W32Time() as an alias to 
W32TmServiceMain, and use the former as the service entry point specified in 
the registry, for Windows compatibility.
---
 base/services/w32time/w32time.spec | 1 +
 boot/bootdata/hivesys.inf          | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/base/services/w32time/w32time.spec 
b/base/services/w32time/w32time.spec
index 75bdeb4176f..32d25bff181 100644
--- a/base/services/w32time/w32time.spec
+++ b/base/services/w32time/w32time.spec
@@ -1,2 +1,3 @@
+6 stdcall SvchostEntry_W32Time(long ptr) W32TmServiceMain
 18 stdcall W32TimeSyncNow(wstr long long)
 21 stdcall W32TmServiceMain(long ptr)
diff --git a/boot/bootdata/hivesys.inf b/boot/bootdata/hivesys.inf
index 1c899493935..639ea7bd7ec 100644
--- a/boot/bootdata/hivesys.inf
+++ b/boot/bootdata/hivesys.inf
@@ -2032,7 +2032,7 @@ 
HKLM,"SYSTEM\CurrentControlSet\Services\W32Time","ObjectName",0x00000000,"LocalS
 HKLM,"SYSTEM\CurrentControlSet\Services\W32Time","Start",0x00010001,0x00000002
 HKLM,"SYSTEM\CurrentControlSet\Services\W32Time","Type",0x00010001,0x00000020
 
HKLM,"SYSTEM\CurrentControlSet\Services\W32Time\Parameters","ServiceDll",0x00020000,"%SystemRoot%\system32\w32time.dll"
-HKLM,"SYSTEM\CurrentControlSet\Services\W32Time\Parameters","ServiceMain",0x00000000,"W32TmServiceMain"
+HKLM,"SYSTEM\CurrentControlSet\Services\W32Time\Parameters","ServiceMain",0x00000000,"SvchostEntry_W32Time"
 
HKLM,"SYSTEM\CurrentControlSet\Services\W32Time\Parameters","Type",0x00010000,"NTP"
 
HKLM,"SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient","SpecialPollInterval",0x00010001,0x00093a80
 

Reply via email to