mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 21:21:33 +00:00
[CLASSPNP] Fix amd64 build
CORE-17129
This commit is contained in:
parent
eb682bbfab
commit
fe1b98fc36
1 changed files with 6 additions and 1 deletions
|
@ -582,7 +582,7 @@ VOID EnqueueFreeTransferPacket(PDEVICE_OBJECT Fdo, __drv_aliasesMem PTRANSFER_PA
|
|||
// Queue a work item to trim down the total number of transfer packets to with the
|
||||
// working size.
|
||||
//
|
||||
IoQueueWorkItemEx(workItem, CleanupTransferPacketToWorkingSetSizeWorker, DelayedWorkQueue, (PVOID) allocateNode);
|
||||
IoQueueWorkItemEx(workItem, CleanupTransferPacketToWorkingSetSizeWorker, DelayedWorkQueue, (PVOID)(ULONG_PTR)allocateNode);
|
||||
|
||||
} else {
|
||||
|
||||
|
@ -960,9 +960,14 @@ TransferPktComplete(IN PDEVICE_OBJECT NullFdo, IN PIRP Irp, IN PVOID Context)
|
|||
//
|
||||
|
||||
#ifdef _WIN64
|
||||
#ifndef __REACTOS__
|
||||
lastIoCompletionTime = ReadULong64NoFence((volatile ULONG64*)&fdoData->LastIoCompletionTime.QuadPart);
|
||||
WriteULong64NoFence((volatile ULONG64*)&fdoData->LastIoCompletionTime.QuadPart,
|
||||
completionTime.QuadPart);
|
||||
#else
|
||||
lastIoCompletionTime = *(volatile ULONG64*)&fdoData->LastIoCompletionTime.QuadPart;
|
||||
*((volatile ULONG64*)&fdoData->LastIoCompletionTime.QuadPart) = completionTime.QuadPart;
|
||||
#endif
|
||||
#else
|
||||
lastIoCompletionTime = InterlockedExchangeNoFence64((volatile LONG64*)&fdoData->LastIoCompletionTime.QuadPart,
|
||||
completionTime.QuadPart);
|
||||
|
|
Loading…
Reference in a new issue