System plugin: Basic x64 fixes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6222 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
adbdce4c47
commit
8aa67f8987
5 changed files with 68 additions and 54 deletions
|
@ -134,21 +134,21 @@ void myitoa64(__int64 i, TCHAR *buffer)
|
|||
*buffer = 0;
|
||||
}
|
||||
|
||||
int popint64()
|
||||
int system_popint()
|
||||
{
|
||||
int value;
|
||||
TCHAR *str;
|
||||
if ((str = system_popstring()) == NULL) return -1;
|
||||
value = (int) myatoi64(str);
|
||||
TCHAR *str;
|
||||
if ((str = system_popstring()) == NULL) return -1;
|
||||
value = myatoi(str);
|
||||
GlobalFree(str);
|
||||
return value;
|
||||
return value;
|
||||
}
|
||||
|
||||
void system_pushint(int value)
|
||||
{
|
||||
TCHAR buffer[1024];
|
||||
wsprintf(buffer, _T("%d"), value);
|
||||
system_pushstring(buffer);
|
||||
TCHAR buffer[80];
|
||||
wsprintf(buffer, _T("%d"), value);
|
||||
system_pushstring(buffer);
|
||||
}
|
||||
|
||||
void *copymem(void *output, void *input, size_t cbSize)
|
||||
|
@ -164,7 +164,7 @@ void *copymem(void *output, void *input, size_t cbSize)
|
|||
|
||||
HANDLE GlobalCopy(HANDLE Old)
|
||||
{
|
||||
size_t size = GlobalSize(Old);
|
||||
size_t size = GlobalSize(Old);
|
||||
return copymem(GlobalAlloc(GPTR, size), Old, size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue