X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.cpp;h=91e726f920d5a8418f2fb6346fa7766fba23d7c1;hb=565d5e4871c26bebf0417f290a21e449a6b049e0;hp=5a732b09007bedfe60a121d12e3a656a7d98d69f;hpb=7dad00e15f4f4cb6aa7dc30540e382b8ac26a325;p=nssm.git diff --git a/service.cpp b/service.cpp index 5a732b0..91e726f 100644 --- a/service.cpp +++ b/service.cpp @@ -791,6 +791,10 @@ int pre_edit_service(int argc, TCHAR **argv) { additional = argv[3]; remainder = 4; } + else if (str_equiv(setting->name, NSSM_NATIVE_OBJECTNAME) && mode == MODE_SETTING) { + additional = argv[3]; + remainder = 4; + } else { additional = argv[remainder]; if (argc < mandatory) return usage(1); @@ -933,6 +937,9 @@ int pre_edit_service(int argc, TCHAR **argv) { /* Unset the parameter. */ value.string = 0; } + else if (remainder == argc) { + value.string = 0; + } else { /* Set the parameter. */ size_t len = 0;