From c2bc2ef16214aab849e061c05689efccff8500b8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 24 May 1999 15:02:18 +0000 Subject: [PATCH] Release the Win16Lock before calling WinExec. --- misc/shell.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/misc/shell.c b/misc/shell.c index ae6e59dc9e3..e22f21bd41f 100644 --- a/misc/shell.c +++ b/misc/shell.c @@ -432,13 +432,17 @@ HINSTANCE16 WINAPI ShellExecute16( HWND16 hWnd, LPCSTR lpOperation, retval = SHELL_FindExecutable( lpFile, lpOperation, cmd ); if (retval > 32) /* Found */ - { if (lpParameters) - { strcat(cmd," "); + { + if (lpParameters) + { + strcat(cmd," "); strcat(cmd,lpParameters); } - TRACE_(shell)("starting %s\n",cmd); + TRACE_(shell)("starting %s\n",cmd); + SYSLEVEL_ReleaseWin16Lock(); retval = WinExec( cmd, iShowCmd ); + SYSLEVEL_RestoreWin16Lock(); } if (lpDirectory) SetCurrentDirectoryA( old_dir );