Fixed type casts.

svn path=/trunk/; revision=2496
This commit is contained in:
Eric Kohl 2002-01-10 00:55:23 +00:00
parent fe7d926068
commit 17b74887c6
2 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,4 @@
/* $Id: message.c,v 1.2 2001/06/22 12:36:22 ekohl Exp $
/* $Id: message.c,v 1.3 2002/01/10 00:54:35 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -32,7 +32,6 @@ RtlFindMessage(PVOID BaseAddress,
NTSTATUS Status;
ULONG EntryOffset, IdOffset;
PRTL_MESSAGE_RESOURCE_ENTRY MessageEntry;
ULONG i;
DPRINT("RtlFindMessage()\n");
@ -88,7 +87,7 @@ RtlFindMessage(PVOID BaseAddress,
}
}
MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)((ULONG)MessageTable + MessageTable->Blocks[i].OffsetToEntries);
MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)((PUCHAR)MessageTable + MessageTable->Blocks[i].OffsetToEntries);
DPRINT("EntryOffset 0x%08lx\n", EntryOffset);
DPRINT("IdOffset 0x%08lx\n", IdOffset);
@ -96,7 +95,7 @@ RtlFindMessage(PVOID BaseAddress,
DPRINT("MessageEntry: %p\n", MessageEntry);
for (i = 0; i < IdOffset; i++)
{
MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)(MessageEntry + (ULONG)MessageEntry->Length);
MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)((PUCHAR)MessageEntry + (ULONG)MessageEntry->Length);
}
if (MessageEntry->Flags == 0)

View file

@ -1,4 +1,4 @@
/* $Id: message.c,v 1.1 2001/06/01 17:13:24 ekohl Exp $
/* $Id: message.c,v 1.2 2002/01/10 00:55:23 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -88,7 +88,7 @@ RtlFindMessage(PVOID BaseAddress,
}
}
MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)((ULONG)MessageTable + MessageTable->Blocks[i].OffsetToEntries);
MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)((PUCHAR)MessageTable + MessageTable->Blocks[i].OffsetToEntries);
DPRINT("EntryOffset 0x%08lx\n", EntryOffset);
DPRINT("IdOffset 0x%08lx\n", IdOffset);
@ -96,8 +96,12 @@ RtlFindMessage(PVOID BaseAddress,
DPRINT("MessageEntry: %p\n", MessageEntry);
for (i = 0; i < IdOffset; i++)
{
MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)(MessageEntry + (ULONG)MessageEntry->Length);
DPRINT("MessageEntry %d: %p\n", i, MessageEntry);
MessageEntry = (PRTL_MESSAGE_RESOURCE_ENTRY)((PUCHAR)MessageEntry + (ULONG)MessageEntry->Length);
}
DPRINT("MessageEntry: %p\n", MessageEntry);
DPRINT("Flags: %hx\n", MessageEntry->Flags);
DPRINT("Length: %hu\n", MessageEntry->Length);
if (MessageEntry->Flags == 0)
{