mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- Changed data pointers from signed to unsigned char.
svn path=/trunk/; revision=4666
This commit is contained in:
parent
8d4eee3aab
commit
3350303771
1 changed files with 13 additions and 13 deletions
|
@ -147,7 +147,7 @@ GetPnpKey(PHKEY PnpKey)
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
PnpDecodeIrq(char *Ptr)
|
PnpDecodeIrq(unsigned char *Ptr)
|
||||||
{
|
{
|
||||||
USHORT IrqMask;
|
USHORT IrqMask;
|
||||||
int i;
|
int i;
|
||||||
|
@ -171,10 +171,10 @@ PnpDecodeIrq(char *Ptr)
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
PnpDecodeDma(char *Ptr)
|
PnpDecodeDma(unsigned char *Ptr)
|
||||||
{
|
{
|
||||||
char DmaChannel;
|
unsigned char DmaChannel;
|
||||||
char DmaStatus;
|
unsigned char DmaStatus;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
DmaChannel = *Ptr;
|
DmaChannel = *Ptr;
|
||||||
|
@ -196,7 +196,7 @@ PnpDecodeDma(char *Ptr)
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
PnpDecodeIoPort(char *Ptr)
|
PnpDecodeIoPort(unsigned char *Ptr)
|
||||||
{
|
{
|
||||||
USHORT MinBase;
|
USHORT MinBase;
|
||||||
USHORT MaxBase;
|
USHORT MaxBase;
|
||||||
|
@ -224,7 +224,7 @@ PnpDecodeIoPort(char *Ptr)
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
PnpDecodeFixedIoPort(char *Ptr)
|
PnpDecodeFixedIoPort(unsigned char *Ptr)
|
||||||
{
|
{
|
||||||
USHORT IoPort;
|
USHORT IoPort;
|
||||||
UCHAR Length;
|
UCHAR Length;
|
||||||
|
@ -256,7 +256,7 @@ PnpDecodeFixedIoPort(char *Ptr)
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
PnpDecodeMemory16(char *Ptr)
|
PnpDecodeMemory16(unsigned char *Ptr)
|
||||||
{
|
{
|
||||||
USHORT DescLength;
|
USHORT DescLength;
|
||||||
UCHAR Info;
|
UCHAR Info;
|
||||||
|
@ -294,7 +294,7 @@ PnpDecodeMemory16(char *Ptr)
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
PnpDecodeMemory32(char *Ptr)
|
PnpDecodeMemory32(unsigned char *Ptr)
|
||||||
{
|
{
|
||||||
USHORT DescLength;
|
USHORT DescLength;
|
||||||
UCHAR Info;
|
UCHAR Info;
|
||||||
|
@ -348,7 +348,7 @@ PnpDecodeMemory32(char *Ptr)
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
PnpDecodeFixedMemory(char *Ptr)
|
PnpDecodeFixedMemory(unsigned char *Ptr)
|
||||||
{
|
{
|
||||||
USHORT DescLength;
|
USHORT DescLength;
|
||||||
UCHAR Info;
|
UCHAR Info;
|
||||||
|
@ -383,12 +383,12 @@ PnpDecodeFixedMemory(char *Ptr)
|
||||||
|
|
||||||
void PrintDeviceData (PCM_PNP_BIOS_DEVICE_NODE DeviceNode)
|
void PrintDeviceData (PCM_PNP_BIOS_DEVICE_NODE DeviceNode)
|
||||||
{
|
{
|
||||||
char PnpId[8];
|
unsigned char PnpId[8];
|
||||||
char *Ptr;
|
unsigned char *Ptr;
|
||||||
unsigned int TagSize;
|
unsigned int TagSize;
|
||||||
unsigned int TagType;
|
unsigned int TagType;
|
||||||
|
|
||||||
char Id[4];
|
unsigned char Id[4];
|
||||||
|
|
||||||
printf ("Node: %x Size %hu (0x%hx)\n",
|
printf ("Node: %x Size %hu (0x%hx)\n",
|
||||||
DeviceNode->Node,
|
DeviceNode->Node,
|
||||||
|
@ -414,7 +414,7 @@ void PrintDeviceData (PCM_PNP_BIOS_DEVICE_NODE DeviceNode)
|
||||||
|
|
||||||
if (DeviceNode->Size > sizeof(CM_PNP_BIOS_DEVICE_NODE))
|
if (DeviceNode->Size > sizeof(CM_PNP_BIOS_DEVICE_NODE))
|
||||||
{
|
{
|
||||||
Ptr = (char *)(DeviceNode + 1);
|
Ptr = (unsigned char *)(DeviceNode + 1);
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
if (*Ptr & 0x80)
|
if (*Ptr & 0x80)
|
||||||
|
|
Loading…
Reference in a new issue