Commit 57754bdb authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcr: Add _getche_nolock implementation.

parent 0a600ccd
......@@ -892,7 +892,7 @@
@ cdecl _getch()
@ cdecl _getch_nolock()
@ cdecl _getche()
@ stub _getche_nolock
@ cdecl _getche_nolock()
@ cdecl _getcwd(str long) MSVCRT__getcwd
@ cdecl _getdcwd(long str long) MSVCRT__getdcwd
@ stub _getdcwd_nolock
......
......@@ -1240,7 +1240,7 @@
@ cdecl _getch()
@ cdecl _getch_nolock()
@ cdecl _getche()
@ stub _getche_nolock
@ cdecl _getche_nolock()
@ cdecl _getcwd(str long) MSVCRT__getcwd
@ cdecl _getdcwd(long str long) MSVCRT__getdcwd
@ cdecl _getdiskfree(long ptr) MSVCRT__getdiskfree
......
......@@ -1238,7 +1238,7 @@
@ cdecl _getch()
@ cdecl _getch_nolock()
@ cdecl _getche()
@ stub _getche_nolock
@ cdecl _getche_nolock()
@ cdecl _getcwd(str long) MSVCRT__getcwd
@ cdecl _getdcwd(long str long) MSVCRT__getdcwd
@ cdecl _getdiskfree(long ptr) MSVCRT__getdiskfree
......
......@@ -566,7 +566,7 @@
@ cdecl _getch()
@ cdecl _getch_nolock()
@ cdecl _getche()
@ stub _getche_nolock
@ cdecl _getche_nolock()
@ cdecl _getcwd(str long) MSVCRT__getcwd
@ cdecl _getdcwd(long str long) MSVCRT__getdcwd
@ stub _getdcwd_nolock
......
......@@ -543,7 +543,7 @@
@ cdecl _getch()
@ cdecl _getch_nolock()
@ cdecl _getche()
@ stub _getche_nolock
@ cdecl _getche_nolock()
@ cdecl _getcwd(str long) MSVCRT__getcwd
@ cdecl _getdcwd(long str long) MSVCRT__getdcwd
@ stub _getdcwd_nolock
......
......@@ -217,17 +217,28 @@ int CDECL _putch(int c)
}
/*********************************************************************
* _getche_nolock (MSVCR80.@)
*/
int CDECL _getche_nolock(void)
{
int retval;
retval = _getch_nolock();
if (retval != MSVCRT_EOF)
retval = _putch_nolock(retval);
return retval;
}
/*********************************************************************
* _getche (MSVCRT.@)
*/
int CDECL _getche(void)
{
int retval;
int ret;
LOCK_CONSOLE;
retval = _getch();
if (retval != MSVCRT_EOF)
retval = _putch(retval);
ret = _getche_nolock();
UNLOCK_CONSOLE;
return retval;
return ret;
}
/*********************************************************************
......
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