Skip to content

Commit

Permalink
Ugh, admin check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
10se1ucgo committed Oct 1, 2015
1 parent 78c008f commit e54521a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self):
panel = wx.Panel(self) # Frame panel

# Test for elevation
if ctypes.windll.shell32.IsUserAnAdmin() != 0:
if ctypes.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)
Expand Down

0 comments on commit e54521a

Please sign in to comment.