don't call IPeristFile::Save if MultiByteToWideChar fails
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5192 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
05ddf4bfc7
commit
5ccacf1781
1 changed files with 2 additions and 3 deletions
|
@ -1050,9 +1050,8 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
||||||
if (SUCCEEDED(hres))
|
if (SUCCEEDED(hres))
|
||||||
{
|
{
|
||||||
static WCHAR wsz[1024];
|
static WCHAR wsz[1024];
|
||||||
wsz[0]=0;
|
if (MultiByteToWideChar(CP_ACP, 0, buf1, -1, wsz, 1024))
|
||||||
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);
|
ppf->lpVtbl->Release(ppf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue