if (CustomCumulativeData == NULL) {\r
return SHELL_OUT_OF_RESOURCES;\r
}\r
- CustomCumulativeData->MinDur = 0;\r
+ CustomCumulativeData->MinDur = PERF_MAXDUR;\r
CustomCumulativeData->MaxDur = 0;\r
CustomCumulativeData->Count = 0;\r
CustomCumulativeData->Duration = 0;\r
// EndCount = Value counter counts to before it needs to be reset\r
//\r
Status = EfiGetSystemConfigurationTable (&gPerformanceProtocolGuid, (VOID **) &PerformanceProperty);\r
- if (EFI_ERROR (Status)) {\r
+ if (EFI_ERROR (Status) || (PerformanceProperty == NULL)) {\r
ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_PERF_PROPERTY_NOT_FOUND), gDpHiiHandle);\r
goto Done;\r
}\r