fixed dword set
git-svn-id: file:///home/svn/incoming/trunk@2369 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
b601772d18
commit
b18593c4eb
|
@ -118,6 +118,7 @@ class Channel
|
|||
request.add_tlv(TLV_TYPE_CHANNEL_ID, self.cid)
|
||||
request.add_tlv(TLV_TYPE_CHANNEL_DATA, buf)
|
||||
request.add_tlv(TLV_TYPE_LENGTH, length)
|
||||
request.add_tlvs(addends)
|
||||
|
||||
response = self.client.send_request(request)
|
||||
written = response.get_tlv(TLV_TYPE_LENGTH)
|
||||
|
@ -134,6 +135,7 @@ class Channel
|
|||
|
||||
# Populate the request
|
||||
request.add_tlv(TLV_TYPE_CHANNEL_ID, self.cid)
|
||||
request.add_tlvs(addends)
|
||||
|
||||
self.client.send_request(request)
|
||||
|
||||
|
|
|
@ -135,6 +135,8 @@ class Registry
|
|||
|
||||
if (type == REG_SZ)
|
||||
data << "\x00"
|
||||
else (type == REG_DWORD)
|
||||
data = [ data.to_i ].pack("V")
|
||||
end
|
||||
|
||||
request.add_tlv(TLV_TYPE_VALUE_DATA, data)
|
||||
|
|
Loading…
Reference in New Issue