forked from Mirrors/wine-wine
Release the Win16Lock before calling WinExec.
parent
bda3969d98
commit
c2bc2ef162
10
misc/shell.c
10
misc/shell.c
|
@ -432,13 +432,17 @@ HINSTANCE16 WINAPI ShellExecute16( HWND16 hWnd, LPCSTR lpOperation,
|
||||||
retval = SHELL_FindExecutable( lpFile, lpOperation, cmd );
|
retval = SHELL_FindExecutable( lpFile, lpOperation, cmd );
|
||||||
|
|
||||||
if (retval > 32) /* Found */
|
if (retval > 32) /* Found */
|
||||||
{ if (lpParameters)
|
{
|
||||||
{ strcat(cmd," ");
|
if (lpParameters)
|
||||||
|
{
|
||||||
|
strcat(cmd," ");
|
||||||
strcat(cmd,lpParameters);
|
strcat(cmd,lpParameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
TRACE_(shell)("starting %s\n",cmd);
|
TRACE_(shell)("starting %s\n",cmd);
|
||||||
|
SYSLEVEL_ReleaseWin16Lock();
|
||||||
retval = WinExec( cmd, iShowCmd );
|
retval = WinExec( cmd, iShowCmd );
|
||||||
|
SYSLEVEL_RestoreWin16Lock();
|
||||||
}
|
}
|
||||||
if (lpDirectory)
|
if (lpDirectory)
|
||||||
SetCurrentDirectoryA( old_dir );
|
SetCurrentDirectoryA( old_dir );
|
||||||
|
|
Loading…
Reference in New Issue