mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 09:16:17 +00:00
[NTOS:IO]
- Fix some incredibly useless debug prints svn path=/trunk/; revision=62584
This commit is contained in:
parent
ea28c6ea42
commit
3548a3cacb
1 changed files with 23 additions and 23 deletions
|
@ -233,8 +233,8 @@ IopQueryDeviceDescription(
|
||||||
/* How much buffer space */
|
/* How much buffer space */
|
||||||
Status = ZwQueryValueKey(ControllerKeyHandle, &ControllerString, KeyValueFullInformation, NULL, 0, &LenKeyFullInformation);
|
Status = ZwQueryValueKey(ControllerKeyHandle, &ControllerString, KeyValueFullInformation, NULL, 0, &LenKeyFullInformation);
|
||||||
|
|
||||||
if(!NT_SUCCESS(Status) && Status != STATUS_BUFFER_TOO_SMALL && Status != STATUS_BUFFER_OVERFLOW)
|
if (!NT_SUCCESS(Status) && Status != STATUS_BUFFER_TOO_SMALL && Status != STATUS_BUFFER_OVERFLOW)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Allocate it */
|
/* Allocate it */
|
||||||
ControllerInformation[ControllerLoop] = ExAllocatePoolWithTag(PagedPool, LenKeyFullInformation, TAG_IO_RESOURCE);
|
ControllerInformation[ControllerLoop] = ExAllocatePoolWithTag(PagedPool, LenKeyFullInformation, TAG_IO_RESOURCE);
|
||||||
|
@ -337,7 +337,7 @@ IopQueryDeviceDescription(
|
||||||
|
|
||||||
/* Create String */
|
/* Create String */
|
||||||
Status |= RtlAppendUnicodeToString(&ControllerRootRegName, L"\\");
|
Status |= RtlAppendUnicodeToString(&ControllerRootRegName, L"\\");
|
||||||
Status |= RtlAppendUnicodeStringToString(&ControllerRootRegName, &TempString);
|
Status |= RtlAppendUnicodeStringToString(&ControllerRootRegName, &TempString);
|
||||||
|
|
||||||
/* Something messed up */
|
/* Something messed up */
|
||||||
if (!NT_SUCCESS(Status)) break;
|
if (!NT_SUCCESS(Status)) break;
|
||||||
|
@ -362,11 +362,11 @@ IopQueryDeviceDescription(
|
||||||
/* How much buffer space */
|
/* How much buffer space */
|
||||||
Status = ZwQueryValueKey(PeripheralKeyHandle, &PeripheralString, KeyValueFullInformation, NULL, 0, &LenKeyFullInformation);
|
Status = ZwQueryValueKey(PeripheralKeyHandle, &PeripheralString, KeyValueFullInformation, NULL, 0, &LenKeyFullInformation);
|
||||||
|
|
||||||
if(!NT_SUCCESS(Status) && Status != STATUS_BUFFER_TOO_SMALL && Status != STATUS_BUFFER_OVERFLOW)
|
if (!NT_SUCCESS(Status) && Status != STATUS_BUFFER_TOO_SMALL && Status != STATUS_BUFFER_OVERFLOW)
|
||||||
{
|
{
|
||||||
PeripheralInformation[PeripheralLoop] = NULL;
|
PeripheralInformation[PeripheralLoop] = NULL;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate it */
|
/* Allocate it */
|
||||||
PeripheralInformation[PeripheralLoop] = ExAllocatePoolWithTag(PagedPool, LenKeyFullInformation, TAG_IO_RESOURCE);
|
PeripheralInformation[PeripheralLoop] = ExAllocatePoolWithTag(PagedPool, LenKeyFullInformation, TAG_IO_RESOURCE);
|
||||||
|
@ -482,7 +482,7 @@ IopQueryBusDescription(
|
||||||
/* Allocate it */
|
/* Allocate it */
|
||||||
FullInformation = ExAllocatePoolWithTag(PagedPool, LenFullInformation, TAG_IO_RESOURCE);
|
FullInformation = ExAllocatePoolWithTag(PagedPool, LenFullInformation, TAG_IO_RESOURCE);
|
||||||
|
|
||||||
if(!FullInformation)
|
if (!FullInformation)
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
|
|
||||||
/* Get the Information */
|
/* Get the Information */
|
||||||
|
@ -722,7 +722,7 @@ IopStoreSystemPartitionInformation(IN PUNICODE_STRING NtSystemPartitionDeviceNam
|
||||||
&ObjectAttributes);
|
&ObjectAttributes);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Failed opening given symbolic link!\n");
|
DPRINT("Failed to open symlink %wZ, Status=%lx\n", NtSystemPartitionDeviceName, Status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -742,7 +742,7 @@ IopStoreSystemPartitionInformation(IN PUNICODE_STRING NtSystemPartitionDeviceNam
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Failed querying given symbolic link!\n");
|
DPRINT("Failed querying symlink %wZ, Status=%lx\n", NtSystemPartitionDeviceName, Status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -756,7 +756,7 @@ IopStoreSystemPartitionInformation(IN PUNICODE_STRING NtSystemPartitionDeviceNam
|
||||||
KEY_ALL_ACCESS);
|
KEY_ALL_ACCESS);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Failed opening registry!\n");
|
DPRINT("Failed to open HKLM\SYSTEM, Status=%lx\n", Status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -775,7 +775,7 @@ IopStoreSystemPartitionInformation(IN PUNICODE_STRING NtSystemPartitionDeviceNam
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Failed opening/creating Setup key!\n");
|
DPRINT("Failed opening/creating Setup key, Status=%lx\n", Status);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -791,7 +791,7 @@ IopStoreSystemPartitionInformation(IN PUNICODE_STRING NtSystemPartitionDeviceNam
|
||||||
LinkTarget.Length + sizeof(WCHAR));
|
LinkTarget.Length + sizeof(WCHAR));
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Failed writing SystemPartition value!\n");
|
DPRINT("Failed writing SystemPartition value, Status=%lx\n", Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prepare for second data writing... */
|
/* Prepare for second data writing... */
|
||||||
|
@ -811,10 +811,10 @@ IopStoreSystemPartitionInformation(IN PUNICODE_STRING NtSystemPartitionDeviceNam
|
||||||
0,
|
0,
|
||||||
REG_SZ,
|
REG_SZ,
|
||||||
OsLoaderPathName->Buffer,
|
OsLoaderPathName->Buffer,
|
||||||
OsLoaderPathName->Length + sizeof(WCHAR));
|
OsLoaderPathName->Length + sizeof(UNICODE_NULL));
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT("Failed writing OsLoaderPath value!\n");
|
DPRINT("Failed writing OsLoaderPath value, Status=%lx\n", Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We're finally done! */
|
/* We're finally done! */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue