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