[UMPNPMGR]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sat, 11 Feb 2017 10:34:35 +0000 (10:34 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sat, 11 Feb 2017 10:34:35 +0000 (10:34 +0000)
- Fix a possible null pointer dereference. CID 515158

svn path=/trunk/; revision=73770

reactos/base/services/umpnpmgr/umpnpmgr.c

index 03fd855..e1e7e5c 100644 (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);