From 82d408374c8ece8f13b50b93ff24ab9633de14f0 Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 周二, 05 8月 2014 04:58:22 +0800
Subject: [PATCH] windows bootstrap 1

---
 src/library/license++.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/library/license++.cpp b/src/library/license++.cpp
index 03f2f2c..9ed9fd4 100644
--- a/src/library/license++.cpp
+++ b/src/library/license++.cpp
@@ -31,8 +31,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 +75,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