[PATCH 1/2] kernel32: Add stub for GetDynamicTimeZoneInformationEffectiveYears().

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 1/2] kernel32: Add stub for GetDynamicTimeZoneInformationEffectiveYears().

Guillaume Charifi
Signed-off-by: Guillaume Charifi <[hidden email]>
---
 dlls/kernel32/kernel32.spec | 1 +
 dlls/kernel32/time.c        | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index de6f007999..3060896daa 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -657,6 +657,7 @@
 # @ stub GetDurationFormat
 # @ stub GetDurationFormatEx
 @ stdcall GetDynamicTimeZoneInformation(ptr)
+@ stdcall GetDynamicTimeZoneInformationEffectiveYears(ptr ptr ptr)
 @ stdcall -ret64 -arch=i386,x86_64 GetEnabledXStateFeatures()
 @ stdcall GetEnvironmentStrings() GetEnvironmentStringsA
 @ stdcall GetEnvironmentStringsA()
diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c
index 91b2c006c7..57ad10d234 100644
--- a/dlls/kernel32/time.c
+++ b/dlls/kernel32/time.c
@@ -1447,6 +1447,15 @@ DWORD WINAPI GetDynamicTimeZoneInformation(DYNAMIC_TIME_ZONE_INFORMATION *tzinfo
     return TIME_ZoneID( (TIME_ZONE_INFORMATION*)tzinfo );
 }
 
+/***********************************************************************
+ *           GetDynamicTimeZoneInformationEffectiveYears   (KERNEL32.@)
+ */
+DWORD WINAPI GetDynamicTimeZoneInformationEffectiveYears(DYNAMIC_TIME_ZONE_INFORMATION *tzinfo, DWORD *first_year, DWORD *last_year)
+{
+    FIXME("(%p, %p, %p): stub!\n", tzinfo, first_year, last_year);
+    return ERROR_FILE_NOT_FOUND;
+}
+
 /***********************************************************************
  *           QueryProcessCycleTime   (KERNEL32.@)
  */
--
Guillaume Charifi <[hidden email]>



Reply | Threaded
Open this post in threaded view
|

[PATCH 2/2] api-ms-win-core-timezone-l1-1-0: Forward GetDynamicTimeZoneInformationEffectiveYears() to kernel32.

Guillaume Charifi
Signed-off-by: Guillaume Charifi <[hidden email]>
---
 .../api-ms-win-core-timezone-l1-1-0.spec                        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/api-ms-win-core-timezone-l1-1-0/api-ms-win-core-timezone-l1-1-0.spec b/dlls/api-ms-win-core-timezone-l1-1-0/api-ms-win-core-timezone-l1-1-0.spec
index b45287913f..3e38d70596 100644
--- a/dlls/api-ms-win-core-timezone-l1-1-0/api-ms-win-core-timezone-l1-1-0.spec
+++ b/dlls/api-ms-win-core-timezone-l1-1-0/api-ms-win-core-timezone-l1-1-0.spec
@@ -1,7 +1,7 @@
 @ stub EnumDynamicTimeZoneInformation
 @ stdcall FileTimeToSystemTime(ptr ptr) kernel32.FileTimeToSystemTime
 @ stdcall GetDynamicTimeZoneInformation(ptr) kernel32.GetDynamicTimeZoneInformation
-@ stub GetDynamicTimeZoneInformationEffectiveYears
+@ stdcall GetDynamicTimeZoneInformationEffectiveYears(ptr ptr ptr) kernel32.GetDynamicTimeZoneInformationEffectiveYears
 @ stdcall GetTimeZoneInformation(ptr) kernel32.GetTimeZoneInformation
 @ stdcall GetTimeZoneInformationForYear(long ptr ptr) kernel32.GetTimeZoneInformationForYear
 @ stub SetDynamicTimeZoneInformation
--
Guillaume Charifi <[hidden email]>