Commit f27a77e5 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

kernelbase: Avoid relying on the exception handler to test that handle != NULL.

Fixes a regression in SlingPlayer 2 caused by commit a76518c1. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52127Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com>
parent d3378c14
......@@ -883,6 +883,7 @@ LPVOID WINAPI DECLSPEC_HOTPATCH LocalLock( HLOCAL handle )
TRACE_(globalmem)( "handle %p\n", handle );
if (!handle) return NULL;
if ((ret = unsafe_ptr_from_HLOCAL( handle )))
{
__TRY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment