Author: tkreuzer
Date: Wed Dec 17 08:46:23 2008
New Revision: 38149
URL:
http://svn.reactos.org/svn/reactos?rev=38149&view=rev
Log:
Fix pointer<->ULONG cast
Modified:
branches/ros-amd64-bringup/reactos/dll/directx/d3d9/d3d9_helpers.c
Modified: branches/ros-amd64-bringup/reactos/dll/directx/d3d9/d3d9_helpers.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/d…
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/directx/d3d9/d3d9_helpers.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/dll/directx/d3d9/d3d9_helpers.c [iso-8859-1] Wed
Dec 17 08:46:23 2008
@@ -93,7 +93,7 @@
HRESULT AlignedAlloc(IN OUT LPVOID *ppObject, IN SIZE_T dwSize)
{
- ULONG AddressOffset;
+ ULONG_PTR AddressOffset;
ULONG AlignedMask = MEM_ALIGNMENT - 1;
CHAR *AlignedPtr;
ULONG_PTR *AlignedOffsetPtr;
@@ -114,7 +114,7 @@
if (AlignedPtr == 0)
return DDERR_OUTOFMEMORY;
- AddressOffset = MEM_ALIGNMENT - ((ULONG)AlignedPtr & AlignedMask);
+ AddressOffset = MEM_ALIGNMENT - ((ULONG_PTR)AlignedPtr & AlignedMask);
AlignedPtr += AddressOffset;