REG_EXPAND_SZ not parsed correctly

Cihan Altinay cihan at uq.edu.au
Mon Nov 28 22:44:56 CST 2005


Hi,
I have a .reg file exported from Windows that contains the following entry:

"HelpLink"=hex(2):68,00,74,00,74,00,70,00,3a,00,2f,00,2f,00,77,00,77,00,77,00,\
  2e,00,6d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,2e,00,63,00,6f,\
  00,6d,00,2f,00,73,00,75,00,70,00,70,00,6f,00,72,00,74,00,00,00

When I run "regedit regfile.reg" this value is written into system.reg as
follows:
"HelpLink"=str(2):"h\0t\0t\0p\0:\0/\0/\0w\0w\0w\0.\0m\0i\0c\0r\0o\0s\0o\0f\0t\0.
\0c\0o\0m\0/\0s\0u\0p\0p\0o\0r\0t\0\0"

Looking at this key with wine's regedit I just see an "h", ie. the first
character, because the next one is treated as end of string. I don't know
if this is a bug in regedit or in the way the value gets read/written by
advapi. Any suggestions?

Cheers,
Cihan




More information about the wine-devel mailing list