Author: tkreuzer
Date: Tue Feb 3 15:52:49 2009
New Revision: 39351
URL:
http://svn.reactos.org/svn/reactos?rev=39351&view=rev
Log:
Don't cast pointers to ULONG!
Modified:
trunk/reactos/drivers/filesystems/npfs/fsctrl.c
Modified: trunk/reactos/drivers/filesystems/npfs/fsctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/fsctrl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/fsctrl.c [iso-8859-1] Tue Feb 3 15:52:49 2009
@@ -438,12 +438,12 @@
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);
}