2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 14:37:41 +00:00

Replace calls to ALLOC() macro with malloc.

This commit is contained in:
Darryl Pogue
2012-01-20 23:30:32 -08:00
committed by Adam Johnson
parent 1fa1197c3e
commit 3c5ed83020
11 changed files with 18 additions and 20 deletions

View File

@ -348,7 +348,7 @@ static NtOpSocketWrite * SocketQueueAsyncWrite (
// extra space in case more data needs to be queued later
unsigned bytesAlloc = max(bytes, sock->backlogAlloc);
bytesAlloc = max(bytesAlloc, kMinBacklogBytes);
NtOpSocketWrite * op = new(ALLOC(sizeof(NtOpSocketWrite) + bytesAlloc)) NtOpSocketWrite;
NtOpSocketWrite * op = new(malloc(sizeof(NtOpSocketWrite) + bytesAlloc)) NtOpSocketWrite;
// init Operation
const AsyncId asyncId = INtConnSequenceStart(sock);
@ -1188,7 +1188,7 @@ void NtSocketConnect (
// create async connection record with enough extra bytes for sendData
NtOpConnAttempt * op =
new(ALLOC(sizeof(NtOpConnAttempt) - sizeof(op->sendData) + sendBytes)) NtOpConnAttempt;
new(malloc(sizeof(NtOpConnAttempt) - sizeof(op->sendData) + sendBytes)) NtOpConnAttempt;
// init Operation
op->overlapped.Offset = 0;