[UMPNPMGR]

- Fix a possible null pointer dereference. CID 515158

svn path=/trunk/; revision=73770
This commit is contained in:
Kamil Hornicek
2017-02-11 10:34:35 +00:00
parent a5ab07e889
commit ac044acb7d
+3 -1
View File
@@ -993,7 +993,9 @@ PNP_GetDeviceRegProp(
}
done:
*pulTransferLen = (ret == CR_SUCCESS) ? *pulLength : 0;
if(pulTransferLen)
*pulTransferLen = (ret == CR_SUCCESS) ? *pulLength : 0;
if (hKey != NULL)
RegCloseKey(hKey);