and if IPeristFile::Save isn't called, fail

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5193 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-07-06 10:21:04 +00:00
parent 5ccacf1781
commit 9a3d40b9dd

View file

@ -1050,8 +1050,9 @@ static int NSISCALL ExecuteEntry(entry *entry_)
if (SUCCEEDED(hres))
{
static WCHAR wsz[1024];
hres=E_FAIL;
if (MultiByteToWideChar(CP_ACP, 0, buf1, -1, wsz, 1024))
hres=ppf->lpVtbl->Save(ppf,(const WCHAR*)wsz,TRUE);
hres=ppf->lpVtbl->Save(ppf,(const WCHAR*)wsz,TRUE);
}
ppf->lpVtbl->Release(ppf);
}