Author: sginsberg
Date: Sat Oct 25 17:57:16 2008
New Revision: 36972
URL:
http://svn.reactos.org/svn/reactos?rev=36972&view=rev
Log:
- When doing pointer arithmetic, ULONG_PTR is your friend
Modified:
branches/ros-amd64-bringup/reactos/drivers/video/displays/vga/main/enable.c
Modified: branches/ros-amd64-bringup/reactos/drivers/video/displays/vga/main/enable.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/drive…
==============================================================================
--- branches/ros-amd64-bringup/reactos/drivers/video/displays/vga/main/enable.c
[iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/drivers/video/displays/vga/main/enable.c
[iso-8859-1] Sat Oct 25 17:57:16 2008
@@ -562,7 +562,7 @@
/* next DEVMODE entry */
OutputModes--;
- DM = (PDEVMODEW) ( ((ULONG)DM) + sizeof(DEVMODEW) + DRIVER_EXTRA_SIZE);
+ DM = (PDEVMODEW) ( ((ULONG_PTR)DM) + sizeof(DEVMODEW) +
DRIVER_EXTRA_SIZE);
OutputSize += (sizeof(DEVMODEW) + DRIVER_EXTRA_SIZE);
}