From 09f16661ea2b8d20f37b05dbe4613ddba4d2dc3a Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:09:31 +0200 Subject: [PATCH] 1.14.7 --- Sandboxie/core/drv/verify.h | 2 +- SandboxiePlus/SandMan/Windows/SettingsWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sandboxie/core/drv/verify.h b/Sandboxie/core/drv/verify.h index b7cc95170a..b6cb06b698 100644 --- a/Sandboxie/core/drv/verify.h +++ b/Sandboxie/core/drv/verify.h @@ -43,7 +43,7 @@ typedef union _SCertInfo { // Other features, available with any cert: "UseRamDisk", "ForceUsbDrives", // as well as Automatic Updates, etc.... - unsigned long expirers_in_sec; + long expirers_in_sec; }; } SCertInfo; diff --git a/SandboxiePlus/SandMan/Windows/SettingsWindow.cpp b/SandboxiePlus/SandMan/Windows/SettingsWindow.cpp index 108d55e613..d953be1aeb 100644 --- a/SandboxiePlus/SandMan/Windows/SettingsWindow.cpp +++ b/SandboxiePlus/SandMan/Windows/SettingsWindow.cpp @@ -1328,7 +1328,7 @@ void CSettingsWindow::UpdateCert() if(g_CertInfo.expirers_in_sec > 0) Info.append(tr("Expires in: %1 days").arg(g_CertInfo.expirers_in_sec / (60*60*24))); else if(g_CertInfo.expirers_in_sec < 0) - Info.append(tr("Expired: %1 days ago").arg(g_CertInfo.expirers_in_sec / (60*60*24))); + Info.append(tr("Expired: %1 days ago").arg(-g_CertInfo.expirers_in_sec / (60*60*24))); QStringList Options; if (g_CertInfo.opt_sec) Options.append("SBox");