mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +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))
|
||||
{
|
||||
DPRINT1("USBHUB: GetUsbStringDescriptor failed with status %x\n", Status);
|
||||
RtlInitUnicodeString(&UsbChildExtension->usTextDescription, L"");
|
||||
RtlInitUnicodeString(&UsbChildExtension->usTextDescription, L"USB Device"); // FIXME NON-NLS
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1048,7 +1048,7 @@ CreateDeviceIds(
|
|||
DPRINT("usDeviceId %wZ\n", &UsbChildExtension->usInstanceId);
|
||||
}
|
||||
|
||||
return Status;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
|
|
|
@ -533,8 +533,8 @@ USBHUB_PdoQueryDeviceText(
|
|||
|
||||
if (SourceString)
|
||||
{
|
||||
ReturnString = ExAllocatePool(PagedPool, SourceString->Length);
|
||||
RtlCopyMemory(ReturnString, SourceString->Buffer, SourceString->Length);
|
||||
ReturnString = ExAllocatePool(PagedPool, SourceString->MaximumLength);
|
||||
RtlCopyMemory(ReturnString, SourceString->Buffer, SourceString->MaximumLength);
|
||||
DPRINT1("%S\n", ReturnString);
|
||||
*Information = (ULONG_PTR)ReturnString;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue