tsk tsk tsk... Memory problems fixed

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2688 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-06-28 12:31:43 +00:00
parent 3c10c29237
commit d20612bdb2
3 changed files with 8 additions and 8 deletions

View file

@ -74,7 +74,7 @@ void CResourceVersionInfo::SetProductVersion(int HighPart, int LowPart)
WCHAR* StrToWstrAlloc(const char* istr, int codepage)
{
int strSize = strlen(istr);
WCHAR* wstr = new WCHAR[(strSize*2)];
WCHAR* wstr = new WCHAR[(strSize*2)+1];
MultiByteToWideChar(codepage, 0, istr, -1, wstr, strSize*2);
return wstr;
}