Renamed my_alloc to my_GlobalAlloc
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@954 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f92b6409f1
commit
3a65507878
5 changed files with 12 additions and 12 deletions
|
@ -39,7 +39,7 @@ int NSISCALL my_MessageBox(const char *text, UINT type) {
|
|||
return MessageBox(g_hwnd, text, g_caption, type);
|
||||
}
|
||||
|
||||
void * NSISCALL my_alloc(DWORD dwBytes) {
|
||||
void * NSISCALL my_GlobalAlloc(DWORD dwBytes) {
|
||||
return (void *)GlobalAlloc(GPTR, dwBytes);
|
||||
}
|
||||
|
||||
|
@ -254,7 +254,7 @@ BOOL NSISCALL MoveFileOnReboot(LPCTSTR pszExisting, LPCTSTR pszNew)
|
|||
if (pszNextSec)
|
||||
{
|
||||
int l=dwFileSize - (pszNextSec - pszWinInit);
|
||||
void* data=(void*)my_alloc(l);
|
||||
void* data=(void*)my_GlobalAlloc(l);
|
||||
mini_memcpy(data, pszNextSec, l);
|
||||
mini_memcpy(pszNextSec + cchRenameLine, data, l);
|
||||
GlobalFree((HGLOBAL)data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue