regedit: Fix exporting of REG_EXPAND_SZ and other 'weird' strings.
commita81bb704df0438870d9cc0f024ed8777831eba1e
authorFrancois Gouget <fgouget@codeweavers.com>
Thu, 20 Nov 2008 19:43:25 +0000 (20 20:43 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 21 Nov 2008 09:00:41 +0000 (21 10:00 +0100)
tree5848eb6fd4dc7e9975306e154bbaf3d8e56c0731
parent3ef0b0ef2d92b4d5105fc1092afdbf6ba9819005
regedit: Fix exporting of REG_EXPAND_SZ and other 'weird' strings.

REG_EXPAND_SZ must be exported as hexadecimal to preserve the string type.
0-byte strings and those missing a trailing '\0' or with odd sizes must
be saved as hexadecimal too so they are restored as is.
Move the binary-value export code to the new REGPROC_export_binary()
function.
programs/regedit/regproc.c