[Bug 824] \0 character is added to REG_MULTI_SZ registry values

Wine Bugs wine-bugs at winehq.org
Sun Oct 10 00:05:07 CDT 2004


http://bugs.winehq.org/show_bug.cgi?id=824





------- Additional Comments From randy.galbraith at cox.net  2004-10-10 00:05 -------
I would like to see if I could resolve this bug.  However, I'm having some
difficulty understanding the exact nature of the original description.  In
particular, can the import/export steps below be reproduce on Windows XP or just
Windows 95/98/ME?  I.e., does Unicode support get in the way?

Here is an example program I wrote in an attempt to recreate this issue:

http://members.cox.net/~rgalbraith10/wine/bug824/demo824.c
http://members.cox.net/~rgalbraith10/wine/bug824/Makefile

When this program is run on Windows XP (compiled with gcc under cygwin) the
exported registry looks like this:

[HKEY_CURRENT_USER\Software\Wine\Bug824]
"Empty Value0"=hex(7):
"Empty Value1"=hex(7):00,00
"Empty Value2"=hex(7):01,00,00,00

When the program is run under Wine (20040914) the exported registry looks like this:

[HKEY_USERS\randy\Software\Wine\Bug824]
"Empty Value0"=hex(7):00
"Empty Value1"=hex(7):00
"Empty Value2"=hex(7):01,00

So, we can see "Empty Value0" is reporting "00" (which is the issue at hand). 
However, what am I to make of Windows XP's "00,00" and "01,00,00,00"?  I assume
this is because Unicode support, but is part a worry?

Interestingly user.reg in Wine stores these entries as this:

[Software\\Wine\\Bug824] 1097383218
"Empty Value0"=str(7):""
"Empty Value1"=str(7):""
"Empty Value2"=str(7):"\1"

Would it be correct to assume the basic issue is the choice of "str(7)" as the
data type for REG_MULTI_SZ?

Since this is my first ever post to Wine/Bugzilla, I would appreciate any
helpful netiquette points (i.e. should I post to mailing list/newsgroup first,
are URLs (as above) preferred over attachments).

Kind regards,
-Randy Galbraith


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list