X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.cpp;h=65767539c75645cf4e08d1aea002a3fc4a4738f4;hb=b47ff49386cd993521c6722a5fe0aa41736aa31b;hp=c93d3ae1659c83dde348ba6a1c0e5bffb78ac12c;hpb=03f6899464b863fc2dd05e7c8e5047e0c1b9281d;p=nssm.git diff --git a/registry.cpp b/registry.cpp index c93d3ae..6576753 100644 --- a/registry.cpp +++ b/registry.cpp @@ -496,7 +496,7 @@ int get_parameters(nssm_service_t *service, STARTUPINFO *si) { /* Try to get priority - may fail. */ unsigned long priority; - if (get_number(key, NSSM_REG_PRIORITY, &priority) == 1) { + if (get_number(key, NSSM_REG_PRIORITY, &priority, false) == 1) { if (priority == (priority & priority_mask())) service->priority = priority; else log_event(EVENTLOG_WARNING_TYPE, NSSM_EVENT_BOGUS_PRIORITY, service->name, NSSM_REG_PRIORITY, 0); }