Re: msvcrt heap: fix _aligned_offset_realloc (move correct block of memory); add a comment to explain why. [1/2]
27 Nov
2007
27 Nov
'07
1:57 p.m.
Lionel Debroux <lionel_debroux(a)yahoo.fr> writes:
+ Therefore, "size" bytes of actual data have to be moved from the offset + they were at in the old block (temp + old_padding) to the offset they + have to be in the new block (temp + new_padding == memblock). +*/ if (new_padding != old_padding) - memmove((char *)memblock + old_padding, (char *)memblock + new_padding, size); + memmove((char *)memblock, (char *)temp + old_padding, size);
You also have to take into account the fact that the size may have changed. -- Alexandre Julliard julliard(a)winehq.org
6600
Age (days ago)
6600
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard