diff options
author | Tim Potter <tpot@samba.org> | 2004-10-02 11:26:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:32 -0500 |
commit | 710ad9613b909332b13620aa8022e8870170418d (patch) | |
tree | 61b002f222099889bb4b10fc223a0468c4465d02 /source4/scripting/swig/torture | |
parent | 7cef5fd077cb99343df3fff0c9145e15bce563d7 (diff) | |
download | samba-710ad9613b909332b13620aa8022e8870170418d.tar.gz samba-710ad9613b909332b13620aa8022e8870170418d.tar.bz2 samba-710ad9613b909332b13620aa8022e8870170418d.zip |
r2781: Got winreg_EnumValue() working. Check it in so I don't break it trying
to clean it up. (-:
(This used to be commit cc646f73b873292eaba152770be9500beff1c988)
Diffstat (limited to 'source4/scripting/swig/torture')
-rwxr-xr-x | source4/scripting/swig/torture/winreg.py | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/source4/scripting/swig/torture/winreg.py b/source4/scripting/swig/torture/winreg.py index abc9fa2245..acf319d6f9 100755 --- a/source4/scripting/swig/torture/winreg.py +++ b/source4/scripting/swig/torture/winreg.py @@ -74,30 +74,40 @@ def test_Enum(pipe, handle, depth = 0): # Enumerate values - return - r = {} r['handle'] = handle - r['name'] = {} - r['name']['len'] = 0 - r['name']['max_len'] = 0 - r['name']['name'] = {} - r['name']['name']['max_len'] = 0 - r['name']['name']['offset'] = 0 - r['name']['name']['len'] = 0 - r['name']['name']['buffer'] = None + + keyinfo['max_valnamelen'] = 18 + keyinfo['max_valbufsize'] = 0x31f5 + + r['foo'] = {} + r['foo']['len'] = 0 + r['foo']['max_len'] = keyinfo['max_valnamelen'] * 2 + r['foo']['buffer'] = {} + r['foo']['buffer']['max_len'] = keyinfo['max_valnamelen'] + r['foo']['buffer']['offset'] = 0 + r['foo']['buffer']['len'] = 0 + r['foo']['buffer']['buffer'] = '' r['type'] = 0 r['value'] = {} - r['value']['max_len'] = 0 + r['value']['max_len'] = keyinfo['max_valbufsize'] r['value']['offset'] = 0 r['value']['len'] = 0 r['value']['buffer'] = [] r['returned_len'] = 0 + r['foo2'] = {} + r['foo2']['max_len'] = keyinfo['max_valbufsize'] + r['foo2']['offset'] = 0 + r['foo2']['len'] = 0 + r['foo2']['buffer'] = '' + r['value1'] = keyinfo['max_valbufsize'] + r['value2'] = 0 for i in range(0, keyinfo['num_values']): r['enum_index'] = i - + + print keyinfo print dcerpc.winreg_EnumValue(pipe, r) sys.exit(1) |