Author: tkreuzer Date: Wed Jul 23 20:34:28 2008 New Revision: 34724
URL: http://svn.reactos.org/svn/reactos?rev=34724&view=rev Log: freeldr: - use strtoull for reading a pointer - use %p in a debugprint instead of cast to int
Modified: branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/cmdline.c branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/registry.c
Modified: branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/cmdline.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/boot/f... ============================================================================== --- branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/cmdline.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/cmdline.c [iso-8859-1] Wed Jul 23 20:34:28 2008 @@ -61,7 +61,7 @@ // Get ramdisk base address // Setting = strstr(CmdLine, "rdbase="); - if (Setting) gRamDiskBase = (PVOID)strtoul(Setting + + if (Setting) gRamDiskBase = (PVOID)(ULONG_PTR)strtoull(Setting + sizeof("rdbase=") - sizeof(ANSI_NULL), NULL,
Modified: branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/registry.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/boot/f... ============================================================================== --- branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/registry.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/boot/freeldr/freeldr/reactos/registry.c [iso-8859-1] Wed Jul 23 20:34:28 2008 @@ -460,8 +460,8 @@ PLIST_ENTRY Ptr; PVALUE Value = NULL;
- DbgPrint((DPRINT_REGISTRY, "Key 0x%x, ValueName '%S', Type %d, Data 0x%x, DataSize %d\n", - (int)Key, ValueName, (int)Type, (int)Data, (int)DataSize)); + DbgPrint((DPRINT_REGISTRY, "Key 0x%p, ValueName '%S', Type %ld, Data 0x%p, DataSize %ld\n", + Key, ValueName, Type, Data, DataSize));
if ((ValueName == NULL) || (*ValueName == 0)) {