mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[USBHUB]
- Handle retrieving string descriptors failure svn path=/trunk/; revision=55964
This commit is contained in:
parent
6a0de53856
commit
ccdeb596e1
2 changed files with 4 additions and 4 deletions
|
@ -997,7 +997,7 @@ CreateDeviceIds(
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("USBHUB: GetUsbStringDescriptor failed with status %x\n", Status);
|
DPRINT1("USBHUB: GetUsbStringDescriptor failed with status %x\n", Status);
|
||||||
RtlInitUnicodeString(&UsbChildExtension->usTextDescription, L"");
|
RtlInitUnicodeString(&UsbChildExtension->usTextDescription, L"USB Device"); // FIXME NON-NLS
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1048,7 +1048,7 @@ CreateDeviceIds(
|
||||||
DPRINT("usDeviceId %wZ\n", &UsbChildExtension->usInstanceId);
|
DPRINT("usDeviceId %wZ\n", &UsbChildExtension->usInstanceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
|
@ -533,8 +533,8 @@ USBHUB_PdoQueryDeviceText(
|
||||||
|
|
||||||
if (SourceString)
|
if (SourceString)
|
||||||
{
|
{
|
||||||
ReturnString = ExAllocatePool(PagedPool, SourceString->Length);
|
ReturnString = ExAllocatePool(PagedPool, SourceString->MaximumLength);
|
||||||
RtlCopyMemory(ReturnString, SourceString->Buffer, SourceString->Length);
|
RtlCopyMemory(ReturnString, SourceString->Buffer, SourceString->MaximumLength);
|
||||||
DPRINT1("%S\n", ReturnString);
|
DPRINT1("%S\n", ReturnString);
|
||||||
*Information = (ULONG_PTR)ReturnString;
|
*Information = (ULONG_PTR)ReturnString;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue