msvcrt: Pass on the return value in _callnewh.
commite66758dd531646aa6707c71f7e6f23ffec4cb1a0
authorMartin Storsjo <martin@martin.st>
Fri, 6 Nov 2015 12:51:55 +0000 (6 14:51 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 9 Nov 2015 14:10:06 +0000 (9 23:10 +0900)
treeefbde74a81e729fb482fb7136bfdc3a4c5efb94a
parenteb5f7531ac489a31d24fee538b0dc208e453d576
msvcrt: Pass on the return value in _callnewh.

Also try to avoid race conditions by storing the new handler in a local
variable before checking whether it's non-null.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/msvcrt/heap.c