diff --git a/run.py b/run.py index 8c2a5dc..13a5011 100644 --- a/run.py +++ b/run.py @@ -43,7 +43,7 @@ def __init__(self): panel = wx.Panel(self) # Frame panel # Test for elevation - if windll.shell32.IsUserAnAdmin() != 0: + if windll.shell32.IsUserAnAdmin() != 1: warn = wx.MessageDialog(parent=None, message="Program requires elevation, please run it as an administrator", caption="ERROR", style=wx.OK | wx.ICON_WARNING)