Martin Pilka <[EMAIL PROTECTED]> writes:

> 1) file ~/.wine/userdef.reg is quite mysterious to me. it seems it
> contains some keys from HKEY_LOCAL_MACHINE, HKEY_USERS/.DEFAULT,
> HKEY_USERS/%username%. HKEY_LOCAL_MACHINE is also contained in
> system.reg file, and HKEY_USERS/%username% in user.reg file. what is
> that duplicity good for? which value takes precedence?

userdef.reg is supposed to contain only HKEY_USERS/.Default; but it
seems a typo crept it at some point that causes it to contain the
whole registry. This should fix it (and may also fix some of your
other issues):

Index: misc/registry.c
===================================================================
RCS file: /opt/cvs-commit/wine/misc/registry.c,v
retrieving revision 1.89
diff -u -r1.89 registry.c
--- misc/registry.c     2001/01/05 04:08:08     1.89
+++ misc/registry.c     2001/01/24 20:16:10
@@ -1554,7 +1554,7 @@
 
     if (!CLIENT_IsBootThread()) return;  /* already loaded */
 
-    if (!RegCreateKeyA(HKEY_USERS,".Default",&hkey_users_default)) hkey_users_default 
= 0;
+    if (RegCreateKeyA(HKEY_USERS,".Default",&hkey_users_default)) hkey_users_default 
+= 0;
 
     _allocate_default_keys();
     _set_registry_levels(0,0,0);

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to