[PATCH 2/2] wineboot: Set Flags and ProfileImagePath user profile values

Alexandre Julliard julliard at winehq.org
Tue Sep 25 06:21:25 CDT 2018


Alex Henrie <alexhenrie24 at gmail.com> writes:

> @@ -444,6 +450,11 @@ static void create_user_profile_registry_key(void)
>  
>      RegCreateKeyExW(HKEY_LOCAL_MACHINE, profile_key_path, 0, NULL, 0, KEY_WRITE, NULL, &profile_key, NULL);
>  
> +    RegSetValueExW(profile_key, FlagsW, 0, REG_DWORD, (BYTE *)&flags, sizeof(flags));
> +
> +    GetUserProfileDirectoryW(token, profile_dir, &profile_dir_len);
> +    RegSetValueExW(profile_key, ProfileImagePathW, 0, REG_SZ, (BYTE *)profile_dir, (profile_dir_len + 1) * sizeof(WCHAR));

I think GetUserProfileDirectoryW() should be getting the value from the
registry, which would be set without using userenv.dll. This could be
done in wineboot, but maybe shell32 would be more appropriate.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list