diff --git a/reactos/base/services/umpnpmgr/umpnpmgr.c b/reactos/base/services/umpnpmgr/umpnpmgr.c index 03fd855c946..e1e7e5c5573 100644 --- a/reactos/base/services/umpnpmgr/umpnpmgr.c +++ b/reactos/base/services/umpnpmgr/umpnpmgr.c @@ -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);