[PATCH] ntdll: Make NtGetTickCount patchable
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- dlls/ntdll/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c index 20de627c28..efe260326c 100644 --- a/dlls/ntdll/time.c +++ b/dlls/ntdll/time.c @@ -557,7 +557,7 @@ NTSTATUS WINAPI NtQueryPerformanceCounter( LARGE_INTEGER *counter, LARGE_INTEGER * NtGetTickCount (NTDLL.@) * ZwGetTickCount (NTDLL.@) */ -ULONG WINAPI NtGetTickCount(void) +ULONG WINAPI DECLSPEC_HOTPATCH NtGetTickCount(void) { return monotonic_counter() / TICKSPERMSEC; } -- 2.20.1
Hi, While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=53300 Your paranoid android. === debian9 (32 bit WoW report) === ntdll: om.c:2133: Test failed: got 99 om.c:2133: Test failed: got 99 om.c:2133: Test failed: got 99
On Wed, Jun 05, 2019 at 01:38:29AM +0000, Alistair Leslie-Hughes wrote:
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> --- dlls/ntdll/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c index 20de627c28..efe260326c 100644 --- a/dlls/ntdll/time.c +++ b/dlls/ntdll/time.c @@ -557,7 +557,7 @@ NTSTATUS WINAPI NtQueryPerformanceCounter( LARGE_INTEGER *counter, LARGE_INTEGER * NtGetTickCount (NTDLL.@) * ZwGetTickCount (NTDLL.@) */ -ULONG WINAPI NtGetTickCount(void) +ULONG WINAPI DECLSPEC_HOTPATCH NtGetTickCount(void) { return monotonic_counter() / TICKSPERMSEC; }
Is this for a specific bug? Huw.
On 5/6/19 7:26 pm, Huw Davies wrote:
On Wed, Jun 05, 2019 at 01:38:29AM +0000, Alistair Leslie-Hughes wrote: Is this for a specific bug?
I thought it would help with bug 47265, for the user that is still doesn't work for. After some testing I couldn't get it to crash with/out this patch. It can be ignored for now. Alistair.
participants (3)
-
Alistair Leslie-Hughes -
Huw Davies -
Marvin