Bug 788430 - Fix a minor bug in the MozillaMaintenanceService error handling. r=bbondy

This commit is contained in:
gliuwr@gmail.com 2012-09-06 17:58:47 -04:00
parent b9432fd42c
commit 46b4e0d157

View File

@ -293,7 +293,7 @@ ProcessSoftwareUpdateCommand(DWORD argc, LPWSTR *argv)
// We can only update update.status if argv[1] exists. argv[1] is
// the directory where the update.status file exists.
if (argc > 1 ||
if (argc < 2 ||
!WriteStatusFailure(argv[1],
SERVICE_NOT_ENOUGH_COMMAND_LINE_ARGS)) {
LOG(("Could not write update.status service update failure."