Fixed a few compiler warnings in EmuKrnlKe
This commit is contained in:
parent
1cefa1cb9e
commit
92cc88a87b
|
@ -530,13 +530,13 @@ XBSYSAPI EXPORTNUM(100) xboxkrnl::VOID NTAPI xboxkrnl::KeDisconnectInterrupt
|
||||||
// Mark InterruptObject as not connected anymore
|
// Mark InterruptObject as not connected anymore
|
||||||
InterruptObject->Connected = FALSE;
|
InterruptObject->Connected = FALSE;
|
||||||
// Search for it in the registered list of interrupts:
|
// Search for it in the registered list of interrupts:
|
||||||
for(int i = 0; i < EmuFreeInterrupt[InterruptObject->BusInterruptLevel]; i++)
|
for(uint i = 0; i < EmuFreeInterrupt[InterruptObject->BusInterruptLevel]; i++)
|
||||||
{
|
{
|
||||||
// Is it here?
|
// Is it here?
|
||||||
if (EmuInterruptList[InterruptObject->BusInterruptLevel][i] == InterruptObject)
|
if (EmuInterruptList[InterruptObject->BusInterruptLevel][i] == InterruptObject)
|
||||||
{
|
{
|
||||||
// Return the free slot :
|
// Return the free slot :
|
||||||
int last = --EmuFreeInterrupt[InterruptObject->BusInterruptLevel];
|
uint last = --EmuFreeInterrupt[InterruptObject->BusInterruptLevel];
|
||||||
// Is this not the last slot?
|
// Is this not the last slot?
|
||||||
if (i < last)
|
if (i < last)
|
||||||
// Instead of shifting everything, move the last one into the slot of this InterruptObject :
|
// Instead of shifting everything, move the last one into the slot of this InterruptObject :
|
||||||
|
@ -743,7 +743,7 @@ XBSYSAPI EXPORTNUM(121) xboxkrnl::BOOLEAN NTAPI xboxkrnl::KeIsExecutingDpc
|
||||||
{
|
{
|
||||||
LOG_FUNC();
|
LOG_FUNC();
|
||||||
|
|
||||||
BOOLEAN ret = KeGetCurrentPrcb()->DpcRoutineActive;
|
BOOLEAN ret = (BOOLEAN)KeGetCurrentPrcb()->DpcRoutineActive;
|
||||||
|
|
||||||
RETURN(ret);
|
RETURN(ret);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue