https://git.reactos.org/?p=reactos.git;a=commitdiff;h=072d1821e7c71bcb314466...
commit 072d1821e7c71bcb31446675c0dd8c9b6577e044 Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Sun Oct 22 17:31:42 2017 +0200
[STORPORT] Fix x64 build --- drivers/storage/port/storport/misc.c | 13 +++++++++++++ drivers/storage/port/storport/storport.spec | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/drivers/storage/port/storport/misc.c b/drivers/storage/port/storport/misc.c index 56b7c6fd3d..7710201876 100644 --- a/drivers/storage/port/storport/misc.c +++ b/drivers/storage/port/storport/misc.c @@ -321,4 +321,17 @@ AllocateAddressMapping( return STATUS_SUCCESS; }
+#if defined(_M_AMD64) +/* KeQuerySystemTime is an inline function, + so we cannot forward the export to ntoskrnl */ +STORPORT_API +VOID +NTAPI +StorPortQuerySystemTime( + _Out_ PLARGE_INTEGER CurrentTime) +{ + KeQuerySystemTime(CurrentTime); +} +#endif /* defined(_M_AMD64) */ + /* EOF */ diff --git a/drivers/storage/port/storport/storport.spec b/drivers/storage/port/storport/storport.spec index 2596b97279..7bfe160a4c 100644 --- a/drivers/storage/port/storport/storport.spec +++ b/drivers/storage/port/storport/storport.spec @@ -24,7 +24,8 @@ @ stdcall StorPortLogError(ptr ptr long long long long long) @ stdcall StorPortMoveMemory(ptr ptr long) @ cdecl StorPortNotification() -@ stdcall StorPortQuerySystemTime(ptr) NTOSKRNL.KeQuerySystemTime +@ stdcall -arch=i386 StorPortQuerySystemTime(ptr) NTOSKRNL.KeQuerySystemTime +@ stdcall -arch=amd64 StorPortQuerySystemTime(ptr) @ stdcall StorPortPause(ptr long) @ stdcall StorPortPauseDevice(ptr long long long long) @ stdcall StorPortReadPortBufferUchar(ptr ptr ptr long)