mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 11:04:52 +00:00
[CRT]: Add a missing _munlock call, caught by Serge Gautherie.
CORE-11568 svn path=/trunk/; revision=75368
This commit is contained in:
parent
f87f8bea7d
commit
e3397b9bdc
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,7 @@ FILE *_tpopen (const _TCHAR *cm, const _TCHAR *md) /* program name, pipe mode */
|
|||
TRACE(MK_STR(_tpopen)"('%"sT"', '%"sT"')\n", cm, md);
|
||||
|
||||
if (cm == NULL)
|
||||
return( NULL );
|
||||
return NULL;
|
||||
|
||||
szComSpec = _tgetenv(_T("COMSPEC"));
|
||||
if (szComSpec == NULL)
|
||||
|
@ -161,6 +161,7 @@ FILE *_tpopen (const _TCHAR *cm, const _TCHAR *md) /* program name, pipe mode */
|
|||
return ret;
|
||||
|
||||
error:
|
||||
_munlock(_POPEN_LOCK);
|
||||
if (ProcessInformation.hProcess != 0)
|
||||
CloseHandle(ProcessInformation.hProcess);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue