From 227f34a7ce0c9627183e004799aa1567fd0b37cb Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 周一, 18 8月 2014 05:18:10 +0800
Subject: [PATCH] linux tests

---
 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