mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Update 0004-ntdll-tests-Test-updating-TickCount-in-user_shared_d.patch
Allows the patch to be applied
This commit is contained in:
parent
7622ec9450
commit
db95c3ad44
@ -21,16 +21,8 @@ index b684bc1980d..f90ac6ff91c 100644
|
||||
|
||||
#define TICKSPERSEC 10000000
|
||||
#define TICKSPERMSEC 10000
|
||||
@@ -27,6 +29,7 @@
|
||||
static VOID (WINAPI *pRtlTimeToTimeFields)( const LARGE_INTEGER *liTime, PTIME_FIELDS TimeFields) ;
|
||||
static VOID (WINAPI *pRtlTimeFieldsToTime)( PTIME_FIELDS TimeFields, PLARGE_INTEGER Time) ;
|
||||
static NTSTATUS (WINAPI *pNtQueryPerformanceCounter)( LARGE_INTEGER *counter, LARGE_INTEGER *frequency );
|
||||
+static ULONG (WINAPI *pNtGetTickCount)(void);
|
||||
|
||||
static const int MonthLengths[2][12] =
|
||||
{
|
||||
@@ -115,15 +118,40 @@ static void test_NtQueryPerformanceCounter(void)
|
||||
ok(status == STATUS_SUCCESS, "expected STATUS_SUCCESS, got %08x\n", status);
|
||||
@@ -153,12 +155,36 @@ static void test_RtlQueryTimeZoneInforma
|
||||
wine_dbgstr_w(tzinfo.DaylightName));
|
||||
}
|
||||
|
||||
+static void test_NtGetTickCount(void)
|
||||
@ -63,13 +55,15 @@ index b684bc1980d..f90ac6ff91c 100644
|
||||
pRtlTimeFieldsToTime = (void *)GetProcAddress(mod,"RtlTimeFieldsToTime");
|
||||
pNtQueryPerformanceCounter = (void *)GetProcAddress(mod, "NtQueryPerformanceCounter");
|
||||
+ pNtGetTickCount = (void *)GetProcAddress(mod,"NtGetTickCount");
|
||||
if (pRtlTimeToTimeFields && pRtlTimeFieldsToTime)
|
||||
test_pRtlTimeToTimeFields();
|
||||
pRtlQueryTimeZoneInformation =
|
||||
(void *)GetProcAddress(mod, "RtlQueryTimeZoneInformation");
|
||||
pRtlQueryDynamicTimeZoneInformation =
|
||||
@@ -169,5 +195,6 @@ START_TEST(time)
|
||||
else
|
||||
win_skip("Required time conversion functions are not available\n");
|
||||
test_NtQueryPerformanceCounter();
|
||||
+ test_NtGetTickCount();
|
||||
test_RtlQueryTimeZoneInformation();
|
||||
}
|
||||
--
|
||||
2.12.2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user