msvcrt: Fixed errno setting in malloc, HeapAlloc doesn't set last error.
This commit is contained in:
parent
b2acafad44
commit
00c81e9d9f
|
@ -272,7 +272,7 @@ void* CDECL MSVCRT_malloc(MSVCRT_size_t size)
|
||||||
{
|
{
|
||||||
void *ret = HeapAlloc(GetProcessHeap(),0,size);
|
void *ret = HeapAlloc(GetProcessHeap(),0,size);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
msvcrt_set_errno(GetLastError());
|
msvcrt_set_errno(MSVCRT_ENOMEM);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue