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,20 +217,31 @@ int CDECL _putch(int c)
}
/*********************************************************************
* _getche (MSVCRT.@)
* _getche_nolock (MSVCR80.@)
*/
int CDECL _getche(void)
int CDECL _getche_nolock(void)
{
int retval;
LOCK_CONSOLE;
retval = _getch();
retval = _getch_nolock();
if (retval != MSVCRT_EOF)
retval = _putch(retval);
UNLOCK_CONSOLE;
retval = _putch_nolock(retval);
return retval;
}
/*********************************************************************
* _getche (MSVCRT.@)
*/
int CDECL _getche(void)
{
int ret;
LOCK_CONSOLE;
ret = _getche_nolock();
UNLOCK_CONSOLE;
return ret;
}
/*********************************************************************
* _cgets (MSVCRT.@)
*/
char* CDECL _cgets(char* str)
......
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