mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
msvcrt: Don't fail when _aligned_offset_malloc is used with size=0.
This commit is contained in:
parent
140bfd2823
commit
7771552f24
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue