summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
46551d0)
- fix a possible null dereference
svn path=/trunk/; revision=65162
if (lpLogHandle->LogFile == NULL)
{
lpLogHandle->LogFile = LogfListItemByName(L"Application");
if (lpLogHandle->LogFile == NULL)
{
lpLogHandle->LogFile = LogfListItemByName(L"Application");
+
+ if (lpLogHandle->LogFile == NULL)
+ {
+ DPRINT1("Application log is missing!\n");
+ Status = STATUS_UNSUCCESSFUL;
+ goto Done;
+ }
+
lpLogHandle->CurrentRecord = LogfGetOldestRecord(lpLogHandle->LogFile);
}
}
lpLogHandle->CurrentRecord = LogfGetOldestRecord(lpLogHandle->LogFile);
}
}