mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
Don't cast pointers to ULONG!
svn path=/trunk/; revision=39351
This commit is contained in:
parent
b45c5496ad
commit
b24b8f4a23
|
@ -438,12 +438,12 @@ NpfsPeekPipe(PIRP Irp,
|
|||
if ((Reply->Data[0])
|
||||
&& (OutputBufferLength >= (MessageLength + FIELD_OFFSET(FILE_PIPE_PEEK_BUFFER, Data[0]))))
|
||||
{
|
||||
memcpy(&Reply->Data[0], (PVOID)((ULONG)BufferPtr + sizeof(MessageLength)), MessageLength);
|
||||
memcpy(&Reply->Data[0], (PVOID)((ULONG_PTR)BufferPtr + sizeof(MessageLength)), MessageLength);
|
||||
ReturnLength = MessageLength;
|
||||
}
|
||||
}
|
||||
|
||||
BufferPtr =(PVOID)((ULONG)BufferPtr + MessageLength + sizeof(MessageLength));
|
||||
BufferPtr =(PVOID)((ULONG_PTR)BufferPtr + MessageLength + sizeof(MessageLength));
|
||||
DPRINT("BufferPtr = %x\n", BufferPtr);
|
||||
DPRINT("ReadDataAvailable: %lu\n", ReadDataAvailable);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue