Author: ros-arm-bringup
Date: Tue Jul 22 01:46:09 2008
New Revision: 34662
URL:
http://svn.reactos.org/svn/reactos?rev=34662&view=rev
Log:
- Epic Fail? Fix another math bug...it actually works now!
- Fix another wrong debug print.
Modified:
trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
Modified: trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/ramd…
==============================================================================
--- trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/ramdisk/ramdisk.c [iso-8859-1] Tue Jul 22 01:46:09
2008
@@ -296,8 +296,8 @@
//
// Convert to pages
//
- ActualPages.QuadPart = BYTES_TO_PAGES(ActualOffset.QuadPart);
- DPRINT1("Offset in pages is: %d\n", ActualOffset);
+ ActualPages.QuadPart = ActualOffset.QuadPart >> PAGE_SHIFT;
+ DPRINT1("Offset in pages is: %I64x\n", ActualPages);
//
// Now add the base page