Win64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6413 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
e23b3db418
commit
e63fa6c53b
38 changed files with 389 additions and 331 deletions
|
@ -15,8 +15,8 @@ TempStack *tempstack = NULL;
|
|||
|
||||
static void AllocWorker(unsigned int mult)
|
||||
{
|
||||
int size;
|
||||
if ((size = popint()) == 0)
|
||||
size_t size;
|
||||
if ((size = popintptr()) == 0)
|
||||
{
|
||||
system_pushint(0);
|
||||
return;
|
||||
|
@ -56,7 +56,7 @@ PLUGINFUNCTIONSHORT(Copy)
|
|||
// Ok, check the size
|
||||
if (size == 0) size = (SIZE_T) GlobalSize(source);
|
||||
// and the destinantion
|
||||
if ((int) dest == 0)
|
||||
if (!dest)
|
||||
{
|
||||
dest = GlobalAlloc((GPTR), size);
|
||||
system_pushintptr((INT_PTR) dest);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue