Don't limit Lnk path A2W conversion to 1024 WCHARs
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6397 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
6c60c09a2c
commit
ebe96fe79c
1 changed files with 5 additions and 5 deletions
|
@ -1075,12 +1075,12 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
if (SUCCEEDED(hres))
|
||||
{
|
||||
#ifdef _UNICODE
|
||||
hres=ppf->lpVtbl->Save(ppf,(const WCHAR*)buf1,TRUE);
|
||||
hres = ppf->lpVtbl->Save(ppf,buf1,TRUE);
|
||||
#else
|
||||
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);
|
||||
WCHAR *wsz = (LPWSTR) buf2; // buf2...buf3 = WCHAR wsz[NSIS_MAX_STRLEN]
|
||||
hres = E_FAIL;
|
||||
if (MultiByteToWideChar(CP_ACP,0,buf1,-1,wsz,NSIS_MAX_STRLEN))
|
||||
hres = ppf->lpVtbl->Save(ppf,wsz,TRUE);
|
||||
#endif
|
||||
}
|
||||
ppf->lpVtbl->Release(ppf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue