Reference error code as hex value and improve comment
@@ -79,8 +79,8 @@ def run_exe(exe):
stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
- if p.returncode == 3221225781:
- # magic errorcode on Windows indicating a common problem that is otherwise hard to diagnose
+ if p.returncode == 0xc0000135:
+ # STATUS_DLL_NOT_FOUND on Windows indicating a common problem that is otherwise hard to diagnose
raise FileNotFoundError('Missing DLLs on calling {!r}'.format(exe.name))
if exe.capture and p.returncode == 0:
