Commit 9ac7bca2 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

user.exe: Release the Win16 lock due to loading 32-bit dlls in CreateWindow.

parent d3c8055b
......@@ -2648,11 +2648,17 @@ static DWORD wait_message16( DWORD count, const HANDLE *handles, DWORD timeout,
*/
HWND create_window16( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE instance, BOOL unicode )
{
DWORD lock;
HWND ret;
/* map to module handle */
if (instance && !((ULONG_PTR)instance >> 16))
instance = HINSTANCE_32( GetExePtr( HINSTANCE_16(instance) ));
return wow_handlers32.create_window( cs, className, instance, unicode );
ReleaseThunkLock( &lock );
ret = wow_handlers32.create_window( cs, className, instance, unicode );
RestoreThunkLock( lock );
return ret;
}
......
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