Commit 00c81e9d authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt: Fixed errno setting in malloc, HeapAlloc doesn't set last error.

parent b2acafad
......@@ -272,7 +272,7 @@ void* CDECL MSVCRT_malloc(MSVCRT_size_t size)
{
void *ret = HeapAlloc(GetProcessHeap(),0,size);
if (!ret)
msvcrt_set_errno(GetLastError());
msvcrt_set_errno(MSVCRT_ENOMEM);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment