Commit c2bc2ef1 authored by Alexandre Julliard's avatar Alexandre Julliard

Release the Win16Lock before calling WinExec.

parent bda3969d
......@@ -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 );
......
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