fixed dword set

git-svn-id: file:///home/svn/incoming/trunk@2369 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Matt Miller 2005-04-11 15:45:33 +00:00
parent b601772d18
commit b18593c4eb
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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)