mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[VIDEOPRT]
- Fix MSVC warnings svn path=/trunk/; revision=52453
This commit is contained in:
parent
6d9cf47ce2
commit
352fd948b1
6 changed files with 10 additions and 11 deletions
|
@ -29,7 +29,7 @@ NTSTATUS
|
|||
IopInitiatePnpIrp(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PIO_STATUS_BLOCK IoStatusBlock,
|
||||
ULONG MinorFunction,
|
||||
UCHAR MinorFunction,
|
||||
PIO_STACK_LOCATION Stack OPTIONAL)
|
||||
{
|
||||
PDEVICE_OBJECT TopDeviceObject;
|
||||
|
|
|
@ -203,8 +203,7 @@ VideoPortFreeCommonBuffer(IN PVOID HwDeviceExtension,
|
|||
ASSERT(VpDmaAdapter->Adapter != NULL);
|
||||
ASSERT(VpDmaAdapter->MapRegisters != 0);
|
||||
|
||||
return VideoPortReleaseCommonBuffer(HwDeviceExtension, (PVP_DMA_ADAPTER)VpDmaAdapter, Length, LogicalAddress, VirtualAddress, CacheEnabled);
|
||||
|
||||
VideoPortReleaseCommonBuffer(HwDeviceExtension, (PVP_DMA_ADAPTER)VpDmaAdapter, Length, LogicalAddress, VirtualAddress, CacheEnabled);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -60,8 +60,8 @@ IntInt10AllocateBuffer(
|
|||
return ERROR_NOT_ENOUGH_MEMORY;
|
||||
}
|
||||
|
||||
*Seg = (ULONG)MemoryAddress >> 4;
|
||||
*Off = (ULONG)MemoryAddress & 0xF;
|
||||
*Seg = (USHORT)((ULONG)MemoryAddress >> 4);
|
||||
*Off = (USHORT)((ULONG)MemoryAddress & 0xF);
|
||||
|
||||
INFO_(VIDEOPRT, "- Segment: %x\n", (ULONG)MemoryAddress >> 4);
|
||||
INFO_(VIDEOPRT, "- Offset: %x\n", (ULONG)MemoryAddress & 0xF);
|
||||
|
@ -182,8 +182,8 @@ IntInt10CallBios(
|
|||
BiosArguments->Esi = BiosContext.Esi;
|
||||
BiosArguments->Edi = BiosContext.Edi;
|
||||
BiosArguments->Ebp = BiosContext.Ebp;
|
||||
BiosArguments->SegDs = BiosContext.SegDs;
|
||||
BiosArguments->SegEs = BiosContext.SegEs;
|
||||
BiosArguments->SegDs = (USHORT)BiosContext.SegDs;
|
||||
BiosArguments->SegEs = (USHORT)BiosContext.SegEs;
|
||||
|
||||
/* Detach and return status */
|
||||
IntDetachFromCSRSS(&CallingProcess, &ApcState);
|
||||
|
|
|
@ -125,7 +125,7 @@ VideoPortEnableInterrupt(IN PVOID HwDeviceExtension)
|
|||
}
|
||||
|
||||
/* Re-enable the interrupt and return */
|
||||
InterruptValid = HalEnableSystemInterrupt(DeviceExtension->InterruptVector,
|
||||
InterruptValid = HalEnableSystemInterrupt((UCHAR)DeviceExtension->InterruptVector,
|
||||
0,
|
||||
DeviceExtension->InterruptLevel);
|
||||
|
||||
|
@ -162,7 +162,7 @@ VideoPortDisableInterrupt(IN PVOID HwDeviceExtension)
|
|||
}
|
||||
|
||||
/* Disable the interrupt and return */
|
||||
HalDisableSystemInterrupt(DeviceExtension->InterruptVector,
|
||||
HalDisableSystemInterrupt((UCHAR)DeviceExtension->InterruptVector,
|
||||
0);
|
||||
return NO_ERROR;
|
||||
#else
|
||||
|
|
|
@ -79,7 +79,7 @@ IntVideoPortMapMemory(
|
|||
IN PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension,
|
||||
IN PHYSICAL_ADDRESS IoAddress,
|
||||
IN ULONG NumberOfUchars,
|
||||
IN UCHAR InIoSpace,
|
||||
IN ULONG InIoSpace,
|
||||
IN HANDLE ProcessHandle,
|
||||
OUT VP_STATUS *Status)
|
||||
{
|
||||
|
|
|
@ -116,7 +116,7 @@ NTSTATUS
|
|||
IopInitiatePnpIrp(
|
||||
PDEVICE_OBJECT DeviceObject,
|
||||
PIO_STATUS_BLOCK IoStatusBlock,
|
||||
ULONG MinorFunction,
|
||||
UCHAR MinorFunction,
|
||||
PIO_STACK_LOCATION Stack OPTIONAL);
|
||||
|
||||
NTSTATUS NTAPI
|
||||
|
|
Loading…
Reference in a new issue