Revert "user.exe: Release the Win16 lock due to loading 32-bit dlls in CreateWindow."
This reverts commit 9ac7bca209
.
The bug has now been fixed in winoldap instead.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6e6a0e2a2c
commit
b266fcaa66
|
@ -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 )
|
HWND create_window16( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE instance, BOOL unicode )
|
||||||
{
|
{
|
||||||
DWORD lock;
|
|
||||||
HWND ret;
|
|
||||||
|
|
||||||
/* map to module handle */
|
/* map to module handle */
|
||||||
if (instance && !((ULONG_PTR)instance >> 16))
|
if (instance && !((ULONG_PTR)instance >> 16))
|
||||||
instance = HINSTANCE_32( GetExePtr( HINSTANCE_16(instance) ));
|
instance = HINSTANCE_32( GetExePtr( HINSTANCE_16(instance) ));
|
||||||
|
|
||||||
ReleaseThunkLock( &lock );
|
return wow_handlers32.create_window( cs, className, instance, unicode );
|
||||||
ret = wow_handlers32.create_window( cs, className, instance, unicode );
|
|
||||||
RestoreThunkLock( lock );
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue