[PATCH 2 of 3] Include organization to determine if it is root installation
Wald Commits
scm-commit at wald.intevation.org
Thu Oct 30 11:33:08 CET 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1414664358 -3600
# Node ID b90df38bb6dcfe0d485cc31456141ee539e36c90
# Parent e3aeaef007f6a99b2196b855c604159c7c3847cd
Include organization to determine if it is root installation
diff -r e3aeaef007f6 -r b90df38bb6dc common/util.c
--- a/common/util.c Thu Oct 30 11:18:58 2014 +0100
+++ b/common/util.c Thu Oct 30 11:19:18 2014 +0100
@@ -27,6 +27,10 @@
#define APPNAME "TrustBridge"
#endif
+#ifndef ORGANIZATION
+#define ORGANIZATION "BSI"
+#endif
+
#ifdef WIN32
char*
read_registry_string (const HKEY root, const wchar_t *key,
@@ -287,7 +291,7 @@
bool ret = false;
reg_inst_dir = read_registry_string (HKEY_LOCAL_MACHINE,
- L"Software\\"APPNAME, L"");
+ L"Software\\"ORGANIZATION"\\"APPNAME, L"");
if (reg_inst_dir == NULL)
{
More information about the Trustbridge-commits
mailing list