Skip to content

Commit 85a40d8

Browse files
committed
Fix test_rpc_response_as_view for better compat
1 parent b0d6003 commit 85a40d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_rpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _get_response_effective_data(self, response):
128128
FIREWALL_RPC_IID = "2fb92682-6599-42dc-ae13-bd2ca89bd11c"
129129

130130
Proc0_RPC_FWOpenPolicyStore = 0
131-
Proc99_RPC_FWEnumFirewallRules2_33 = 99
131+
Proc9_RPC_FWEnumFirewallRules = 9
132132

133133
def test_rpc_response_as_view():
134134
"""Check that parsing response as view in RPC Client works. Testing after a bug in 32b RPCCLient"""
@@ -149,11 +149,11 @@ def test_rpc_response_as_view():
149149
rawpolstore = resp1[:20]
150150
assert not client.last_response_was_view
151151

152-
# Proc99_RPC_FWEnumFirewallRules2_33
152+
# Proc9_RPC_FWEnumFirewallRules
153153
# \x00\x00\x03\x00\xff\xff\xff\x7f\x07\x00
154154
# https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fasp/36cddff4-c427-4863-a58d-3d913a12b221
155155
# FW_PROFILE_TYPE_ALL : 0x7FFFFFFF
156156
# FW_RULE_STATUS_CLASS_OK + FW_RULE_STATUS_PARTIALLY_IGNORED = 0x00010000 + 0x00020000
157157
# Flags = 7 ?
158-
resp2 = client.call(iid, Proc99_RPC_FWEnumFirewallRules2_33, params=rawpolstore + b"\x00\x00\x03\x00\xff\xff\xff\x7f\x07\x00")
158+
resp2 = client.call(iid, Proc9_RPC_FWEnumFirewallRules, params=rawpolstore + b"\x00\x00\x03\x00\xff\xff\xff\x7f\x07\x00")
159159
assert client.last_response_was_view

0 commit comments

Comments
 (0)