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/licensecc.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/library/licensecc.cpp b/src/library/licensecc.cpp
index 087d7cf..f9807a2 100644
--- a/src/library/licensecc.cpp
+++ b/src/library/licensecc.cpp
@@ -38,7 +38,7 @@
 			result = true;
 		} catch (const std::exception& ex) {
 			LOG_ERROR("Error calculating hw_identifier: %s", ex.what());
-#ifdef _DEBUG
+#ifndef NDEBUG
 			cout << "Error occurred: " << ex.what() << std::endl;
 #endif
 		}
@@ -77,8 +77,8 @@
 	string project;
 	size_t str_size;
 	if (callerInformation != nullptr &&
-		(str_size = license::mstrnlen_s(callerInformation->project_name, sizeof callerInformation->project_name)) > 0) {
-		project = string(callerInformation->project_name, str_size);
+		(str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->feature_name)) > 0) {
+		project = string(callerInformation->feature_name, str_size);
 	} else {
 		project = string(LCC_PROJECT_NAME);
 	}
@@ -122,7 +122,7 @@
 			license_out->days_left = 0;
 		}
 	}
-#ifdef _DEBUG
+#ifndef NDEBUG
 	cout << er << endl;
 #endif
 

--
Gitblit v1.9.1