strange code

Alexandre Julliard julliard at winehq.com
Mon Aug 27 16:40:35 CDT 2001


Andreas Mohr <a.mohr at 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.

-- 
Alexandre Julliard
julliard at winehq.com




More information about the wine-devel mailing list