mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
Cleanup code
svn path=/trunk/; revision=34793
This commit is contained in:
parent
e99c0ad3a9
commit
4b1181962c
1 changed files with 2 additions and 10 deletions
|
@ -233,17 +233,9 @@ NTSTATUS
|
|||
PciCreateInstanceIDString(PUNICODE_STRING InstanceID,
|
||||
PPCI_DEVICE Device)
|
||||
{
|
||||
WCHAR Buffer[32];
|
||||
ULONG Index;
|
||||
WCHAR Buffer[3];
|
||||
|
||||
Index = 0;
|
||||
if (((PPDO_DEVICE_EXTENSION)Device->Pdo->DeviceExtension)->PciDevice->BusNumber != 0)
|
||||
{
|
||||
/* FIXME: Copy InstanceID of parent PCI bus to Buffer */
|
||||
// Index += swprintf(Buffer, ....);
|
||||
}
|
||||
|
||||
swprintf(&Buffer[Index], L"%02X", Device->SlotNumber.u.AsULONG & 0xff);
|
||||
swprintf(Buffer, L"%02X", Device->SlotNumber.u.AsULONG & 0xff);
|
||||
|
||||
return RtlCreateUnicodeString(InstanceID, Buffer) ? STATUS_SUCCESS : STATUS_INSUFFICIENT_RESOURCES;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue