mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
freeldr:
- 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:
parent
52521c8876
commit
b0ef62e022
|
@ -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,
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue