Bugfix: release Win16Lock in WinExec16, CallProc[Ex]32W_16.
diff --git a/loader/module.c b/loader/module.c
index ebbceac..3f3b6e5 100644
--- a/loader/module.c
+++ b/loader/module.c
@@ -805,7 +805,13 @@
*/
HINSTANCE16 WINAPI WinExec16( LPCSTR lpCmdLine, UINT16 nCmdShow )
{
- return WinExec( lpCmdLine, nCmdShow );
+ HINSTANCE16 hInst;
+
+ SYSLEVEL_ReleaseWin16Lock();
+ hInst = WinExec( lpCmdLine, nCmdShow );
+ SYSLEVEL_RestoreWin16Lock();
+
+ return hInst;
}
/***********************************************************************