diff --git a/source/net/filebot/platform/windows/WinAppUtilities.java b/source/net/filebot/platform/windows/WinAppUtilities.java index 0c378ea0..224fbbe5 100644 --- a/source/net/filebot/platform/windows/WinAppUtilities.java +++ b/source/net/filebot/platform/windows/WinAppUtilities.java @@ -26,7 +26,7 @@ public class WinAppUtilities { public static String getAppUserModelID() { try { PointerByReference ppszAppID = new PointerByReference(); - if (Shell32.INSTANCE.GetCurrentProcessExplicitAppUserModelID(ppszAppID) == WinError.S_OK) { + if (Shell32.INSTANCE.GetCurrentProcessExplicitAppUserModelID(ppszAppID).equals(WinError.S_OK)) { return ppszAppID.getValue().getWideString(0); } } catch (Throwable t) {