Commit 05c23eda authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

advpack: Clean up the formatting of RegInstall to match the rest of the file.

parent d049c37a
...@@ -236,15 +236,20 @@ HRESULT WINAPI RegInstallW(HMODULE hm, LPCWSTR pszSection, const STRTABLEW* pstT ...@@ -236,15 +236,20 @@ HRESULT WINAPI RegInstallW(HMODULE hm, LPCWSTR pszSection, const STRTABLEW* pstT
goto done; goto done;
/* Write the additional string table */ /* Write the additional string table */
if (pstTable) for(i = 0; i < pstTable->cEntries; i++) { if (pstTable)
WCHAR tmp_value[MAX_PATH + 2]; {
for(i = 0; i < pstTable->cEntries; i++)
tmp_value[0] = '\"'; {
lstrcpyW(tmp_value + 1, pstTable->pse[i].pszValue); WCHAR tmp_value[MAX_PATH + 2];
lstrcatW(tmp_value, quote);
tmp_value[0] = '\"';
WritePrivateProfileStringW(Strings, pstTable->pse[i].pszName, tmp_value, tmp_ini_path); lstrcpyW(tmp_value + 1, pstTable->pse[i].pszValue);
lstrcatW(tmp_value, quote);
WritePrivateProfileStringW(Strings, pstTable->pse[i].pszName, tmp_value, tmp_ini_path);
}
} }
/* flush cache */ /* flush cache */
WritePrivateProfileStringW(NULL, NULL, NULL, tmp_ini_path); WritePrivateProfileStringW(NULL, NULL, NULL, tmp_ini_path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment