diff --git a/run.py b/run.py index 1a63083..af09001 100644 --- a/run.py +++ b/run.py @@ -33,7 +33,7 @@ def __init__(self, parent, title): self.redir = RedirectText(self.debug) sys.stdout = self.redir - if ctypes.windll.shell32.IsUserAnAdmin() != 0: + if ctypes.windll.shell32.IsUserAnAdmin() != 1: self.warn = wx.MessageDialog(parent=wxpanel, message="Program requires elevation, please run it as an administrator", caption="ERROR", style=wx.OK | wx.ICON_WARNING)