my_GlobalAlloc no longer reduces the size

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4255 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-09-09 16:08:44 +00:00
parent 8e3f7ed623
commit d6367e4125
4 changed files with 6 additions and 10 deletions

View file

@ -696,7 +696,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
}
else
{
s=(stack_t*)my_GlobalAlloc(sizeof(stack_t));
s=(stack_t*)GlobalAlloc(GPTR,sizeof(stack_t));
GetNSISString(s->text,parm0);
s->next=g_st;
g_st=s;
@ -900,7 +900,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
if (s1)
{
void *b1;
b1=my_GlobalAlloc(s1);
b1=GlobalAlloc(GPTR,s1);
if (b1)
{
UINT uLen;
@ -1410,7 +1410,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
{
unsigned char *filebuf;
int filehdrsize = g_filehdrsize;
filebuf=(unsigned char *)my_GlobalAlloc(filehdrsize);
filebuf=(unsigned char *)GlobalAlloc(GPTR,filehdrsize);
if (filebuf)
{
DWORD lout;
@ -1418,7 +1418,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
ReadSelfFile((char*)filebuf,filehdrsize);
{
unsigned char* seeker;
unsigned char* unicon_data = seeker = (unsigned char*)my_GlobalAlloc(parm2);
unsigned char* unicon_data = seeker = (unsigned char*)GlobalAlloc(GPTR,parm2);
if (unicon_data) {
GetCompressedDataFromDataBlockToMemory(parm1,unicon_data,parm2);
while (*seeker) {