[ros-diffs] [janderwald] 41422: - SetupDiOpenClassRegKeyExW should ERROR_INVALID_CLASS when it fails - TODO: NtOpenKey should fail when acessMask == 0 and a registry path is passed

janderwald at svn.reactos.org janderwald at svn.reactos.org
Tue Jun 16 10:04:11 CEST 2009


Author: janderwald
Date: Tue Jun 16 12:04:08 2009
New Revision: 41422

URL: http://svn.reactos.org/svn/reactos?rev=41422&view=rev
Log:
- SetupDiOpenClassRegKeyExW should ERROR_INVALID_CLASS when it fails
- TODO: NtOpenKey should fail when acessMask == 0 and a registry path is passed

Modified:
    trunk/reactos/dll/win32/setupapi/devinst.c

Modified: trunk/reactos/dll/win32/setupapi/devinst.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devinst.c?rev=41422&r1=41421&r2=41422&view=diff
==============================================================================
--- trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] Tue Jun 16 12:04:08 2009
@@ -3573,7 +3573,7 @@
                           samDesired,
                           &hClassesKey)))
         {
-            SetLastError(l);
+            SetLastError(ERROR_INVALID_CLASS);
             hClassesKey = INVALID_HANDLE_VALUE;
         }
         if (MachineName != NULL)



More information about the Ros-diffs mailing list