From: Alexandre Julliard Subject: Re: [PATCH 2/2] wineboot: Set Flags and ProfileImagePath user profile values Message-Id: <87ftxxrfey.fsf@winehq.org> Date: Tue, 25 Sep 2018 13:21:25 +0200 In-Reply-To: <20180923202508.10221-2-alexhenrie24@gmail.com> (Alex Henrie's message of "Sun, 23 Sep 2018 14:24:38 -0600") References: <20180923202508.10221-1-alexhenrie24@gmail.com> <20180923202508.10221-2-alexhenrie24@gmail.com> Alex Henrie 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@winehq.org