mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:25:45 +00:00
sorrry I did break the build
svn path=/trunk/; revision=22198
This commit is contained in:
parent
4eada6f8bd
commit
dd6d911c37
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ void* calloc(size_t _nmemb, size_t _size)
|
||||||
size_t nSize = _nmemb * _size;
|
size_t nSize = _nmemb * _size;
|
||||||
size_t cSize = ROUND_SIZE(nSize);
|
size_t cSize = ROUND_SIZE(nSize);
|
||||||
|
|
||||||
if ((_nmemb > ((size_t)-1 / _size) || (cSize<nSize))
|
if ( (_nmemb > ((size_t)-1 / _size)) || (cSize<nSize))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return HeapAlloc(hHeap, HEAP_ZERO_MEMORY, cSize );
|
return HeapAlloc(hHeap, HEAP_ZERO_MEMORY, cSize );
|
||||||
|
@ -73,7 +73,7 @@ void* realloc(void* _ptr, size_t _size)
|
||||||
{
|
{
|
||||||
size_t nSize;
|
size_t nSize;
|
||||||
|
|
||||||
if (( _size == 0) && (_ptr !=NULL)
|
if (( _size == 0) && (_ptr !=NULL))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
nSize = ROUND_SIZE(_size);
|
nSize = ROUND_SIZE(_size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue