KERNEL: pull WINDIR and WINSYSDIR from config before using hardcoded defaults (possible fix for WWN #234, #235 c:\\windows is not accessible Error)

Alexandre Julliard julliard at
Wed Aug 18 18:11:39 CDT 2004

Alex Villací­s Lasso <a_villacis at> writes:

> Changelog:
> * if windir or winsysdir environment vars are undefined, pull values
> from config file before falling to hardcoded values

This of course defeats the whole purpose of the use of environment
variables, which is to get rid of the config file. If the environment
variables are not set it's because the user's config is wrong, they
should be set in HKLM\System\CurrentControlSet\Control\SessionManager
or (preferably) in HKCU\Environment. The code is supposed to migrate
them automatically, but this may not always work if the registry
already contains other values, in which case it needs to be fixed by
hand. Going back to the config file is definitely not the right way.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list