mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[WINESYNC] msvcrt: Don't fail when _aligned_offset_malloc is used with size=0.
wine commit id 7771552f247660acc472b4862f32c4f8426be180 by Piotr Caban <piotr@codeweavers.com>
This commit is contained in:
parent
739c9a1e77
commit
f34e425e1a
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,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