- use strtoull for reading a pointer
- use %p in a debugprint instead of cast to int

svn path=/branches/ros-amd64-bringup/; revision=34724
This commit is contained in:
Timo Kreuzer 2008-07-24 01:34:28 +00:00
parent 52521c8876
commit b0ef62e022
2 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ CmdLineParse(IN PCHAR CmdLine)
// 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,

View file

@ -460,8 +460,8 @@ RegSetValue(FRLDRHKEY Key,
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))
{