Fix INKEY
This commit is contained in:
1 parent
0e4f1d1e6b
commit
0eb9e1620f
1 file changed
+3
@@ -1522,6 +1522,9 @@ class PetitComputer
|
|||||||
}
|
}
|
||||||
wstring inkey()
|
wstring inkey()
|
||||||
{
|
{
|
||||||
|
keybuffermutex.lock();
|
||||||
|
scope (exit)
|
||||||
|
keybuffermutex.unlock();
|
||||||
if (!keybufferlen)
|
if (!keybufferlen)
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in new issue
Block a user