From b266fcaa66f89c08c056371f7b81b7faadea9a98 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 30 Nov 2015 21:04:47 +0900 Subject: [PATCH] Revert "user.exe: Release the Win16 lock due to loading 32-bit dlls in CreateWindow." This reverts commit 9ac7bca209e1b11af898d1b393d13c8dc92c66e1. The bug has now been fixed in winoldap instead. Signed-off-by: Alexandre Julliard --- dlls/user.exe16/message.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dlls/user.exe16/message.c b/dlls/user.exe16/message.c index b5d922537d5..935b0257b6a 100644 --- a/dlls/user.exe16/message.c +++ b/dlls/user.exe16/message.c @@ -2648,17 +2648,11 @@ 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) )); - ReleaseThunkLock( &lock ); - ret = wow_handlers32.create_window( cs, className, instance, unicode ); - RestoreThunkLock( lock ); - return ret; + return wow_handlers32.create_window( cs, className, instance, unicode ); }