Merge pull request #46584 from twangboy/lgpo-46568

Fix issue LGPO issue
This commit is contained in:
Nicole Thomas 2018-03-20 13:48:32 -04:00 committed by GitHub
commit df12135439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3430,7 +3430,7 @@ def _processValueItem(element, reg_key, reg_valuename, policy, parent_element,
this_element_value = b''.join([this_element_value.encode('utf-16-le'), this_element_value = b''.join([this_element_value.encode('utf-16-le'),
encoded_null]) encoded_null])
elif etree.QName(element).localname == 'multiText': elif etree.QName(element).localname == 'multiText':
this_vtype = 'REG_MULTI_SZ' this_vtype = 'REG_MULTI_SZ' if not check_deleted else 'REG_SZ'
if this_element_value is not None: if this_element_value is not None:
this_element_value = '{0}{1}{1}'.format(chr(0).join(this_element_value), chr(0)) this_element_value = '{0}{1}{1}'.format(chr(0).join(this_element_value), chr(0))
elif etree.QName(element).localname == 'list': elif etree.QName(element).localname == 'list':