1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 00:42:45 +01:00

(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter

This commit is contained in:
KUDr
2007-01-11 17:29:39 +00:00
parent 91ff746410
commit 33be1ecfb1
49 changed files with 141 additions and 181 deletions

View File

@@ -31,8 +31,7 @@ static void Proxy(void* arg)
OTTDThread* OTTDCreateThread(OTTDThreadFunc function, void* arg)
{
OTTDThread* t;
MallocT(&t, 1);
OTTDThread* t = MallocT<OTTDThread>(1);
if (t == NULL) return NULL;
@@ -74,8 +73,7 @@ struct OTTDThread {
OTTDThread* OTTDCreateThread(OTTDThreadFunc function, void* arg)
{
OTTDThread* t;
MallocT(&t, 1);
OTTDThread* t = MallocT<OTTDThread>(1);
if (t == NULL) return NULL;
@@ -123,8 +121,7 @@ static DWORD WINAPI Proxy(LPVOID arg)
OTTDThread* OTTDCreateThread(OTTDThreadFunc function, void* arg)
{
OTTDThread* t;
MallocT(&t, 1);
OTTDThread* t = MallocT<OTTDThread>(1);
DWORD dwThreadId;
if (t == NULL) return NULL;