diff --git a/src/cli.cpp b/src/cli.cpp index 5c7d6be..1d38966 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -207,7 +207,7 @@ int CLI::parseCommandLine(int argc, char* argv[], Options* options) { } // make sure that a product id is entered for OFFICE_2K3 or OFFICE_2K7 IIDs - if ((options->activationMode == OFFICE_2K3 || options->activationMode == OFFICE_2K7) && options->productid == "") { + if ((options->activationMode == OFFICE_2K3 || options->activationMode == OFFICE_2K7) && (options->productid.empty() || options->instid.empty()) ) { return options->error = true; }