limit ansiName[] size so long string build doesn't break
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6359 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d8250550ae
commit
1554dac424
1 changed files with 2 additions and 2 deletions
|
@ -1086,8 +1086,8 @@ void NSISCALL MessageLoop(UINT uCheckedMsg)
|
|||
void * NSISCALL NSISGetProcAddress(HANDLE dllHandle, TCHAR* funcName)
|
||||
{
|
||||
#ifdef _UNICODE
|
||||
char ansiName[NSIS_MAX_STRLEN];
|
||||
if (WideCharToMultiByte(CP_ACP, 0, funcName, -1, ansiName, NSIS_MAX_STRLEN, NULL, NULL) != 0)
|
||||
char ansiName[256];
|
||||
if (WideCharToMultiByte(CP_ACP, 0, funcName, -1, ansiName, 256, NULL, NULL) != 0)
|
||||
return GetProcAddress(dllHandle, ansiName);
|
||||
return NULL;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue