summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/microsoft_service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/Services/microsoft_service.cpp')
-rw-r--r--plugins/CloudFile/src/Services/microsoft_service.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CloudFile/src/Services/microsoft_service.cpp b/plugins/CloudFile/src/Services/microsoft_service.cpp
index 2a3f3c19b4..722560aec8 100644
--- a/plugins/CloudFile/src/Services/microsoft_service.cpp
+++ b/plugins/CloudFile/src/Services/microsoft_service.cpp
@@ -36,7 +36,7 @@ bool COneDriveService::IsLoggedIn()
ptrA token(getStringA("TokenSecret"));
if (!token || token[0] == 0)
return false;
- time_t now = time(nullptr);
+ time_t now = time(0);
time_t expiresIn = getDword("ExpiresIn");
return now < expiresIn;
}
@@ -54,7 +54,7 @@ void COneDriveService::Login(HWND owner)
db_set_s(NULL, GetAccountName(), "TokenSecret", node.as_string().c_str());
node = root.at("expires_in");
- time_t expiresIn = time(nullptr) + node.as_int();
+ time_t expiresIn = time(0) + node.as_int();
setDword("ExpiresIn", expiresIn);
return;
@@ -117,7 +117,7 @@ void COneDriveService::RequestAccessTokenThread(void *param)
setString("TokenSecret", node.as_string().c_str());
node = root.at("expires_in");
- time_t expiresIn = time(nullptr) + node.as_int();
+ time_t expiresIn = time(0) + node.as_int();
setDword("ExpiresIn", expiresIn);
node = root.at("refresh_token");