From c8824c92cf1a3f517d70dd2c978e26ebd30f3129 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sat, 2 May 2015 10:23:26 +0000 Subject: [PATCH] [MSPORTS] Introduce a setting that makes the driver accept resources with an IRQ instead of only resources without an IRQ. Brought to you by The ReactOS Printing Group. CORE-9645 svn path=/trunk/; revision=67509 --- reactos/dll/win32/msports/classinst.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/reactos/dll/win32/msports/classinst.c b/reactos/dll/win32/msports/classinst.c index fa369b2c3a7..78d0995e3b8 100644 --- a/reactos/dll/win32/msports/classinst.c +++ b/reactos/dll/win32/msports/classinst.c @@ -381,6 +381,7 @@ InstallParallelPort(IN HDEVINFO DeviceInfoSet, WCHAR szPortName[8]; DWORD dwPortNumber = 0; DWORD dwSize; + DWORD dwValue; LONG lError; HKEY hKey; @@ -458,6 +459,23 @@ InstallParallelPort(IN HDEVINFO DeviceInfoSet, (LPBYTE)szPortName, (wcslen(szPortName) + 1) * sizeof(WCHAR)); + /* + * FIXME / HACK: + * This is to get the w2k3 parport.sys to work until we have our own. + * This setting makes the driver accept resources with an IRQ instead + * of only resources without an IRQ. + * + * We should probably also fix IO manager to actually give devices a + * chance to register without an IRQ. CORE-9645 + */ + dwValue = 0; + RegSetValueExW(hKey, + L"FilterResourceMethod", + 0, + REG_DWORD, + (LPBYTE)&dwValue, + sizeof(dwValue)); + RegCloseKey(hKey); } }