mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 09:01:13 +00:00
- Disable checking of nonactive device interface because the code is not working yet (IoSetDeviceInterfaceState requires more work)
svn path=/trunk/; revision=39777
This commit is contained in:
parent
be75d0f7aa
commit
b5cdd80eb5
|
@ -400,6 +400,7 @@ IoGetDeviceInterfaces(IN CONST GUID *InterfaceClassGuid,
|
||||||
/* We have to check if the interface is enabled, by
|
/* We have to check if the interface is enabled, by
|
||||||
* reading the Linked value in the Control subkey
|
* reading the Linked value in the Control subkey
|
||||||
*/
|
*/
|
||||||
|
#if 0
|
||||||
InitializeObjectAttributes(
|
InitializeObjectAttributes(
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
&Control,
|
&Control,
|
||||||
|
@ -422,6 +423,7 @@ IoGetDeviceInterfaces(IN CONST GUID *InterfaceClassGuid,
|
||||||
DPRINT("ZwOpenKey() failed with status 0x%08lx\n", Status);
|
DPRINT("ZwOpenKey() failed with status 0x%08lx\n", Status);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* FIXME: Read the Linked value
|
/* FIXME: Read the Linked value
|
||||||
* If it doesn't exist => ERROR
|
* If it doesn't exist => ERROR
|
||||||
* If it is not a REG_DWORD or Size != sizeof(ULONG) => ERROR
|
* If it is not a REG_DWORD or Size != sizeof(ULONG) => ERROR
|
||||||
|
@ -887,7 +889,7 @@ IoRegisterDeviceInterface(IN PDEVICE_OBJECT PhysicalDeviceObject,
|
||||||
SymbolicLinkName->Buffer[SymbolicLinkName->Length/sizeof(WCHAR)] = L'\0';
|
SymbolicLinkName->Buffer[SymbolicLinkName->Length/sizeof(WCHAR)] = L'\0';
|
||||||
|
|
||||||
/* Create symbolic link */
|
/* Create symbolic link */
|
||||||
DPRINT("IoRegisterDeviceInterface(): creating symbolic link %wZ -> %wZ\n", SymbolicLinkName, &PdoNameInfo->Name);
|
DPRINT1("IoRegisterDeviceInterface(): creating symbolic link %wZ -> %wZ\n", SymbolicLinkName, &PdoNameInfo->Name);
|
||||||
Status = IoCreateSymbolicLink(SymbolicLinkName, &PdoNameInfo->Name);
|
Status = IoCreateSymbolicLink(SymbolicLinkName, &PdoNameInfo->Name);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue