- SetupDiOpenClassRegKeyExW should ERROR_INVALID_CLASS when it fails

- TODO: NtOpenKey should fail when acessMask == 0 and a registry path is passed

svn path=/trunk/; revision=41422
This commit is contained in:
Johannes Anderwald 2009-06-16 08:04:08 +00:00
parent 66128d2725
commit 2a1067133d

View file

@ -3573,7 +3573,7 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
samDesired,
&hClassesKey)))
{
SetLastError(l);
SetLastError(ERROR_INVALID_CLASS);
hClassesKey = INVALID_HANDLE_VALUE;
}
if (MachineName != NULL)