MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / succeed_on_zero

Function succeed_on_zero

windows/winproxy/error.py:53–57  ·  view source on GitHub ↗

raise WinproxyError if result is NOT 0

(func_name, result, func, args)

Source from the content-addressed store, hash-verified

51
52
53def succeed_on_zero(func_name, result, func, args):
54 """raise WinproxyError if result is NOT 0"""
55 if result:
56 raise WinproxyError(func_name)
57 return args
58
59
60def result_is_error_code(func_name, result, func, args):

Callers

nothing calls this directly

Calls 1

WinproxyErrorClass · 0.85

Tested by

no test coverage detected