From 8a92f843b101bc44f97c16e617ad2ade3755b11d Mon Sep 17 00:00:00 2001
From: Kelly Kelly <kelly@basistech.com>
Date: Mon, 23 May 2022 14:23:35 -0400
Subject: [PATCH] Fixed windows OS check in both VideoUtils and
 HashLookupSettingsPanel

---
 Core/src/org/sleuthkit/autopsy/coreutils/VideoUtils.java        | 2 +-
 .../autopsy/modules/hashdatabase/HashLookupSettingsPanel.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Core/src/org/sleuthkit/autopsy/coreutils/VideoUtils.java b/Core/src/org/sleuthkit/autopsy/coreutils/VideoUtils.java
index 3aee9f4fc3..8fa59850f4 100644
--- a/Core/src/org/sleuthkit/autopsy/coreutils/VideoUtils.java
+++ b/Core/src/org/sleuthkit/autopsy/coreutils/VideoUtils.java
@@ -242,7 +242,7 @@ static BufferedImage generateVideoThumbnail(AbstractFile file, int iconSize) {
     
     public static boolean canCompressAndScale(AbstractFile file) {
 
-        if (PlatformUtil.getOSName().toLowerCase().startsWith("Windows")) {
+        if (PlatformUtil.getOSName().toLowerCase().startsWith("windows")) {
             return isVideoThumbnailSupported(file);
         }
 
diff --git a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashLookupSettingsPanel.java b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashLookupSettingsPanel.java
index c9b3dd772a..704aef8612 100644
--- a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashLookupSettingsPanel.java
+++ b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashLookupSettingsPanel.java
@@ -982,7 +982,7 @@ private void sendIngestMessagesCheckBoxActionPerformed(java.awt.event.ActionEven
      * @return true if running on windows, false otherwise
      */
     private boolean isWindows() {
-        return PlatformUtil.getOSName().toLowerCase().startsWith("Windows");
+        return PlatformUtil.getOSName().toLowerCase().startsWith("windows");
     }
 
     @NbBundle.Messages({"HashLookupSettingsPanel.indexNsrl.text=This hash set appears to be the NSRL, it will be removed from the list.\n",
-- 
GitLab