wineboot: Also set the Flags value under ProfileList.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-11-21 09:24:35 +01:00
parent aa3d01e650
commit 63f8231570
1 changed files with 2 additions and 1 deletions

View File

@ -1204,9 +1204,10 @@ static void update_user_profile(void)
if (!RegCreateKeyExW(hkey, sid, 0, NULL, 0, if (!RegCreateKeyExW(hkey, sid, 0, NULL, 0,
KEY_ALL_ACCESS, NULL, &profile_hkey, NULL)) KEY_ALL_ACCESS, NULL, &profile_hkey, NULL))
{ {
DWORD flags = 0;
if (SHGetSpecialFolderPathW(NULL, profile, CSIDL_PROFILE, TRUE)) if (SHGetSpecialFolderPathW(NULL, profile, CSIDL_PROFILE, TRUE))
set_reg_value(profile_hkey, profile_image_path, profile); set_reg_value(profile_hkey, profile_image_path, profile);
RegSetValueExW( profile_hkey, L"Flags", 0, REG_DWORD, (const BYTE *)&flags, sizeof(flags) );
RegCloseKey(profile_hkey); RegCloseKey(profile_hkey);
} }