Commit 7771552f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Don't fail when _aligned_offset_malloc is used with size=0.

parent 140bfd28
......@@ -384,7 +384,7 @@ void * CDECL _aligned_offset_malloc(MSVCRT_size_t size, MSVCRT_size_t alignment,
}
/* offset must be less than size */
if (offset >= size)
if (offset && offset >= size)
{
*MSVCRT__errno() = MSVCRT_EINVAL;
return NULL;
......
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