From b446e4d14a0694d23573d77672ef6d70c51d6a08 Mon Sep 17 00:00:00 2001 From: Maximilien Siavelis <maximilien.siavelis@simulease.com> Date: 周五, 05 1月 2018 09:10:37 +0800 Subject: [PATCH] make install and some cleanup --- src/library/license++.cpp | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/library/license++.cpp b/src/library/license++.cpp index 03f2f2c..8f913b0 100644 --- a/src/library/license++.cpp +++ b/src/library/license++.cpp @@ -17,8 +17,7 @@ } -DllExport void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, - char chbuffer[PC_IDENTIFIER_SIZE + 1]) { +DllExport void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, char chbuffer[PC_IDENTIFIER_SIZE + 1]) { } @@ -31,8 +30,8 @@ if (!it->has_expiry) { it->toLicenseInfo(license); break; - } else if (curLicense_exp < it->to_date) { - curLicense_exp = it->to_date; + } else if (curLicense_exp < it->expires_on()) { + curLicense_exp = it->expires_on(); it->toLicenseInfo(license); } } @@ -75,12 +74,12 @@ return result; } -DllExport enum EVENT_TYPE confirm_license(char * product, +DllExport EVENT_TYPE confirm_license(char * product, LicenseLocation licenseLocation) { return LICENSE_OK; } -DllExport enum EVENT_TYPE release_license(char * product, +DllExport EVENT_TYPE release_license(char * product, LicenseLocation licenseLocation) { return LICENSE_OK; } -- Gitblit v1.9.1