From f4e683fc6bd6ac76f9979f49d737588b6ddf16b0 Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 14 11月 2020 22:13:13 +0800
Subject: [PATCH] windows smbios

---
 src/library/locate/EnvironmentVarLocation.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/library/locate/EnvironmentVarLocation.cpp b/src/library/locate/EnvironmentVarLocation.cpp
index 5615482..e029483 100644
--- a/src/library/locate/EnvironmentVarLocation.cpp
+++ b/src/library/locate/EnvironmentVarLocation.cpp
@@ -7,9 +7,9 @@
 
 #include <licensecc_properties.h>
 
-#include "../base/FileUtils.hpp"
-#include "../base/StringUtils.h"
+#include "../base/string_utils.h"
 #include "EnvironmentVarLocation.hpp"
+#include "../base/file_utils.hpp"
 
 namespace license {
 namespace locate {
@@ -22,14 +22,14 @@
 const vector<string> EnvironmentVarLocation::license_locations(EventRegistry &eventRegistry) {
 	vector<string> licenseFileFoundWithEnvVariable;
 
-	const string varName(LICENSE_LOCATION_ENV_VAR);
+	const string varName(LCC_LICENSE_LOCATION_ENV_VAR);
 	if (varName.length() > 0) {
 		// var name is defined in header files.
-		char *env_var_value = getenv(LICENSE_LOCATION_ENV_VAR);
+		char *env_var_value = getenv(LCC_LICENSE_LOCATION_ENV_VAR);
 		if (env_var_value != nullptr && env_var_value[0] != '\0') {
 			const vector<string> declared_positions = license::split_string(string(env_var_value), ';');
 			licenseFileFoundWithEnvVariable =
-				license::filter_existing_files(declared_positions, eventRegistry, LICENSE_LOCATION_ENV_VAR);
+				license::filter_existing_files(declared_positions, eventRegistry, LCC_LICENSE_LOCATION_ENV_VAR);
 		} else {
 			eventRegistry.addEvent(ENVIRONMENT_VARIABLE_NOT_DEFINED);
 		}

--
Gitblit v1.9.1