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:
parent
f44f437325
commit
a9454dacc4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user