raise WinproxyError(result) if result is NOT 0
(func_name, result, func, args)
| 58 | |
| 59 | |
| 60 | def result_is_error_code(func_name, result, func, args): |
| 61 | """raise WinproxyError(result) if result is NOT 0""" |
| 62 | if result: |
| 63 | raise WinproxyError(func_name, error_code=result) |
| 64 | return args |
| 65 | |
| 66 | |
| 67 | def result_is_ntstatus(func_name, result, func, args): |
nothing calls this directly
no test coverage detected