Write the RegOwner and RegCompany keys as blank if they do not exist

when doing the RegisterUser action.
This commit is contained in:
Aric Stewart 2005-05-20 18:59:01 +00:00 committed by Alexandre Julliard
parent 82ed0ce999
commit ec4df18833
1 changed files with 2 additions and 0 deletions

View File

@ -6250,6 +6250,8 @@ static UINT ACTION_RegisterUser(MSIPACKAGE *package)
size = strlenW(buffer)*sizeof(WCHAR);
RegSetValueExW(hkey,szRegKeys[i],0,REG_SZ,(LPSTR)buffer,size);
}
else
RegSetValueExW(hkey,szRegKeys[i],0,REG_SZ,NULL,0);
i++;
}