Bazaar/ProtectServer : fixed building on new core

git-svn-id: svn://ultimatepp.org/upp/trunk@11976 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2018-06-05 18:43:21 +00:00
parent 49abbe7001
commit ae33cf8d23

View file

@ -449,7 +449,7 @@ VectorMap<String, Value> ProtectServer::ProcessRequest(int reason, VectorMap<Str
res.Add("ERROR", PROTECT_MAIL_SEND_ERROR);
}
// otherwise we shall check if license expired
else if(userRec.Get("EXPIRATION") <= GetSysTime())
else if((Time)userRec.Get("EXPIRATION") <= GetSysTime())
{
// signals expiration and leave
res.Add("ERROR", PROTECT_MAIL_ALREADY_USED);
@ -516,7 +516,7 @@ VectorMap<String, Value> ProtectServer::ProcessRequest(int reason, VectorMap<Str
}
// ok, product registered and activated... is license expired ?
if(userRec.Get("EXPIRATION") < GetSysTime())
if((Time)userRec.Get("EXPIRATION") < GetSysTime())
{
res.Add("ERROR", PROTECT_LICENSE_EXPIRED);
return res;