From: Timo Kreuzer Date: Sun, 22 Oct 2017 15:31:42 +0000 (+0200) Subject: [STORPORT] Fix x64 build X-Git-Tag: 0.4.8-dev~41 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=072d1821e7c71bcb31446675c0dd8c9b6577e044;ds=sidebyside [STORPORT] Fix x64 build --- diff --git a/drivers/storage/port/storport/misc.c b/drivers/storage/port/storport/misc.c index 56b7c6fd3d1..77102018766 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 2596b972799..7bfe160a4c3 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)