Fixed a bug that prevented the last letter from getting copied

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@885 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-03 11:33:55 +00:00
parent 52892d7e6d
commit 0f830fbf45

View file

@ -1454,7 +1454,7 @@ static BOOL CALLBACK InstProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
EmptyClipboard();
memory = GlobalAlloc(GMEM_MOVEABLE,total+1);
ptr = GlobalLock(memory);
endPtr = ptr+total;
endPtr = ptr+total+1;
for (i = 0; i < count; i++)
{
// -2 to allow for CR/LF