From b5cdd80eb516fa9d375612b26a473217b9457871 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Thu, 26 Feb 2009 20:36:56 +0000 Subject: [PATCH] - Disable checking of nonactive device interface because the code is not working yet (IoSetDeviceInterfaceState requires more work) svn path=/trunk/; revision=39777 --- reactos/ntoskrnl/io/iomgr/deviface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/iomgr/deviface.c b/reactos/ntoskrnl/io/iomgr/deviface.c index fb0247cc553..34a50928897 100644 --- a/reactos/ntoskrnl/io/iomgr/deviface.c +++ b/reactos/ntoskrnl/io/iomgr/deviface.c @@ -400,6 +400,7 @@ IoGetDeviceInterfaces(IN CONST GUID *InterfaceClassGuid, /* We have to check if the interface is enabled, by * reading the Linked value in the Control subkey */ +#if 0 InitializeObjectAttributes( &ObjectAttributes, &Control, @@ -422,6 +423,7 @@ IoGetDeviceInterfaces(IN CONST GUID *InterfaceClassGuid, DPRINT("ZwOpenKey() failed with status 0x%08lx\n", Status); goto cleanup; } +#endif /* FIXME: Read the Linked value * If it doesn't exist => 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'; /* 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); if (!NT_SUCCESS(Status)) {