kernelbase: Use the same HLOCAL entry pointer alignment as native.
commit2fcb072f0376a24ca6d3faf0fc92bddf56c137ca
authorRémi Bernon <rbernon@codeweavers.com>
Mon, 4 Apr 2022 08:01:59 +0000 (4 10:01 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 4 Apr 2022 16:40:26 +0000 (4 18:40 +0200)
tree134f87e5319d13bd9e1b8dd4bdc494b2702253f8
parent55282e0d0988b66809ddb58b9f3b7449f8284fc1
kernelbase: Use the same HLOCAL entry pointer alignment as native.

This changes the GlobalUnlock todo_wine as we previously considered the
invalid mem handle as a valid pointer, and we now instead check handle
validity.

Returning TRUE in for an invalid handle doesn't seem very important, and
a corner case, and it breaks compatibility and imm32 tests.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/kernel32/heap.c
dlls/kernel32/tests/heap.c
dlls/kernelbase/memory.c