James Hawkins : advpack: Clean up the formatting of RegInstall to match the rest of the file.
Module: wine Branch: refs/heads/master Commit: 05c23edaef85a16e5e519980af662b284e0e1475 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=05c23edaef85a16e5e519980... Author: James Hawkins <truiken(a)gmail.com> Date: Fri Apr 28 19:57:48 2006 -0500 advpack: Clean up the formatting of RegInstall to match the rest of the file. --- dlls/advpack/reg.c | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/dlls/advpack/reg.c b/dlls/advpack/reg.c index f1ab8e2..0fec624 100644 --- a/dlls/advpack/reg.c +++ b/dlls/advpack/reg.c @@ -236,15 +236,20 @@ HRESULT WINAPI RegInstallW(HMODULE hm, L goto done; /* Write the additional string table */ - if (pstTable) for(i = 0; i < pstTable->cEntries; i++) { - WCHAR tmp_value[MAX_PATH + 2]; - - tmp_value[0] = '\"'; - lstrcpyW(tmp_value + 1, pstTable->pse[i].pszValue); - lstrcatW(tmp_value, quote); - - WritePrivateProfileStringW(Strings, pstTable->pse[i].pszName, tmp_value, tmp_ini_path); + if (pstTable) + { + for(i = 0; i < pstTable->cEntries; i++) + { + WCHAR tmp_value[MAX_PATH + 2]; + + tmp_value[0] = '\"'; + 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 */ WritePrivateProfileStringW(NULL, NULL, NULL, tmp_ini_path);
participants (1)
-
Alexandre Julliard