X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=registry.cpp;h=b8aab781ec6ba1e24f9006c89696eab4fb3cf491;hb=3882561f394fd6542400fe29fb39804c50612322;hp=86eaaf508275fc8ef93fe3c22b71210118eb2af0;hpb=838c282576cff8e2f0467eab8965ccaee39075f5;p=nssm.git diff --git a/registry.cpp b/registry.cpp index 86eaaf5..b8aab78 100644 --- a/registry.cpp +++ b/registry.cpp @@ -524,7 +524,7 @@ long open_registry(const TCHAR *service_name, const TCHAR *sub, REGSAM sam, HKEY HKEY open_registry(const TCHAR *service_name, const TCHAR *sub, REGSAM sam, bool must_exist) { HKEY key; - long error = open_registry(service_name, sub, sam, &key, true); + long error = open_registry(service_name, sub, sam, &key, must_exist); return key; }