Registry Loading function

James K Whiting whiting at MIT.EDU
Fri Nov 8 12:54:19 CST 2002


I sent in a bug report this morning (bug #1134) about problems with the
byte order when loading the registry from Windows ME. This seems to fix the
problem. It causes strings of type REG_MULTI_SZ to pass through to the
default handler, which then writes the values out in the proper order. I
don't know if it is "correct", but it does cause the str(7) values in
~/.wine/system.reg to match the bytes put out by regedit under windows. It
also allows MS Word to start up and work properly.

Also, the ~/.wine/*.reg files were written by winesetuptk.

James



--- misc/registry.c	2002-09-23 23:07:17.000000000 -0400
+++ misc/registry.c	2002-11-08 12:26:36.000000000 -0500
@@ -197,7 +197,6 @@
     switch(value->type) {
         case REG_SZ:
         case REG_EXPAND_SZ:
-        case REG_MULTI_SZ:
             if (value->type != REG_SZ) fprintf( f, "str(%d):", value->type );
             fputc( '\"', f );
             if (value->data) _dump_strW(value->data,value->len/sizeof(WCHAR),f,"\"\"");



More information about the wine-patches mailing list