Author: akhaldi
Date: Sat May 2 10:23:26 2015
New Revision: 67509
URL:
http://svn.reactos.org/svn/reactos?rev=67509&view=rev
Log:
[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
Modified:
trunk/reactos/dll/win32/msports/classinst.c
Modified: trunk/reactos/dll/win32/msports/classinst.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/classins…
==============================================================================
--- trunk/reactos/dll/win32/msports/classinst.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/classinst.c [iso-8859-1] Sat May 2 10:23:26 2015
@@ -381,6 +381,7 @@
WCHAR szPortName[8];
DWORD dwPortNumber = 0;
DWORD dwSize;
+ DWORD dwValue;
LONG lError;
HKEY hKey;
@@ -457,6 +458,23 @@
REG_SZ,
(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);
}