Replacing tabs with spaces
Signed-off-by: Sameeh Jubran <sameeh@daynix.com> Signed-off-by: Dmitry Fleytman <dmitry@daynix.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
2919989c2a
commit
7383452757
@ -1919,53 +1919,53 @@ NTSTATUS QxlDod::RegisterHWInfo(ULONG Id)
|
|||||||
|
|
||||||
NTSTATUS QxlDod::ReadConfiguration()
|
NTSTATUS QxlDod::ReadConfiguration()
|
||||||
{
|
{
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
|
DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__));
|
||||||
|
|
||||||
HANDLE DevInstRegKeyHandle;
|
HANDLE DevInstRegKeyHandle;
|
||||||
Status = IoOpenDeviceRegistryKey(m_pPhysicalDevice, PLUGPLAY_REGKEY_DRIVER, KEY_SET_VALUE, &DevInstRegKeyHandle);
|
Status = IoOpenDeviceRegistryKey(m_pPhysicalDevice, PLUGPLAY_REGKEY_DRIVER, KEY_SET_VALUE, &DevInstRegKeyHandle);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DbgPrint(TRACE_LEVEL_ERROR, ("IoOpenDeviceRegistryKey failed for PDO: 0x%I64x, Status: 0x%I64x", m_pPhysicalDevice, Status));
|
DbgPrint(TRACE_LEVEL_ERROR, ("IoOpenDeviceRegistryKey failed for PDO: 0x%I64x, Status: 0x%I64x", m_pPhysicalDevice, Status));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
UNICODE_STRING ValueName;
|
UNICODE_STRING ValueName;
|
||||||
UCHAR Buffer[sizeof(KEY_VALUE_PARTIAL_INFORMATION)+sizeof(ULONG)];
|
UCHAR Buffer[sizeof(KEY_VALUE_PARTIAL_INFORMATION)+sizeof(ULONG)];
|
||||||
PKEY_VALUE_PARTIAL_INFORMATION Value = (PKEY_VALUE_PARTIAL_INFORMATION)Buffer;
|
PKEY_VALUE_PARTIAL_INFORMATION Value = (PKEY_VALUE_PARTIAL_INFORMATION)Buffer;
|
||||||
ULONG ValueLength = sizeof(Buffer);
|
ULONG ValueLength = sizeof(Buffer);
|
||||||
ULONG ResultLength;
|
ULONG ResultLength;
|
||||||
ULONG Length;
|
ULONG Length;
|
||||||
|
|
||||||
RtlInitUnicodeString(&ValueName, L"VgaCompatible");
|
RtlInitUnicodeString(&ValueName, L"VgaCompatible");
|
||||||
|
|
||||||
Status = ZwQueryValueKey(DevInstRegKeyHandle,
|
Status = ZwQueryValueKey(DevInstRegKeyHandle,
|
||||||
&ValueName,
|
&ValueName,
|
||||||
KeyValuePartialInformation,
|
KeyValuePartialInformation,
|
||||||
Value,
|
Value,
|
||||||
ValueLength,
|
ValueLength,
|
||||||
&ResultLength);
|
&ResultLength);
|
||||||
|
|
||||||
if (NT_SUCCESS(Status)) {
|
if (NT_SUCCESS(Status)) {
|
||||||
m_VgaCompatible = *(PULONG)(Value->Data);
|
m_VgaCompatible = *(PULONG)(Value->Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
RtlInitUnicodeString(&ValueName, L"PointerCaps");
|
RtlInitUnicodeString(&ValueName, L"PointerCaps");
|
||||||
|
|
||||||
Status = ZwQueryValueKey(DevInstRegKeyHandle,
|
Status = ZwQueryValueKey(DevInstRegKeyHandle,
|
||||||
&ValueName,
|
&ValueName,
|
||||||
KeyValuePartialInformation,
|
KeyValuePartialInformation,
|
||||||
Value,
|
Value,
|
||||||
ValueLength,
|
ValueLength,
|
||||||
&ResultLength);
|
&ResultLength);
|
||||||
|
|
||||||
if (NT_SUCCESS(Status)) {
|
if (NT_SUCCESS(Status)) {
|
||||||
m_PointerCaps = *(PULONG)(Value->Data);
|
m_PointerCaps = *(PULONG)(Value->Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));
|
DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -106,7 +106,7 @@ typedef struct
|
|||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
typedef struct _X86BIOS_REGISTERS // invented names
|
typedef struct _X86BIOS_REGISTERS // invented names
|
||||||
{
|
{
|
||||||
ULONG Eax;
|
ULONG Eax;
|
||||||
ULONG Ecx;
|
ULONG Ecx;
|
||||||
|
@ -634,7 +634,7 @@ DodSystemDisplayWrite(
|
|||||||
#if defined(DBG)
|
#if defined(DBG)
|
||||||
|
|
||||||
#define RHEL_DEBUG_PORT ((PUCHAR)0x3F8)
|
#define RHEL_DEBUG_PORT ((PUCHAR)0x3F8)
|
||||||
#define TEMP_BUFFER_SIZE 256
|
#define TEMP_BUFFER_SIZE 256
|
||||||
|
|
||||||
void DebugPrintFuncSerial(const char *format, ...)
|
void DebugPrintFuncSerial(const char *format, ...)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user