Andreas Mohr a.mohr@mailto.de writes:
in PROFILE_LoadWineIni(), we return from processing in case we're not the boot thread only *after* having created HKLM\Software\Wine\Wine registry keys:
if (!CLIENT_IsBootThread()) return 1; /* already loaded */
Why ?? After all the registry is globally shared in wineserver, so it shouldn't be necessary to create them again via NtCreateKey if we're not the wine boot process.
We don't need to create the keys, but we need to create the handle to the key. We could use NtOpenKey instead but NtCreateKey works just as well and avoids duplicating code.