1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 00:08:51 -05:00

Fix HRESULT comparsion (== doesn't work in this case)

This commit is contained in:
Reinhard Pointner 2018-07-23 20:12:15 +07:00
parent f44f437325
commit a9454dacc4

View File

@ -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) {