Increase cache to five handles
The cache is used to speed up detection of console handles, but with the original three handles I was only thinking of actual console handles, not general file handles. Five handles implies: stdout, stderr, CONOUT$, log file and output file.
This commit is contained in:
parent
67f1d48801
commit
df5596f65f
5
ANSI.c
5
ANSI.c
@ -154,7 +154,8 @@
|
||||
|
||||
v1.80, 26 to 28 October, 2017:
|
||||
fix unloading;
|
||||
revert back to (re)storing buffer cursor position.
|
||||
revert back to (re)storing buffer cursor position;
|
||||
increase cache to five handles.
|
||||
*/
|
||||
|
||||
#include "ansicon.h"
|
||||
@ -171,7 +172,7 @@ DWORD orgmode; // original mode
|
||||
CONSOLE_CURSOR_INFO orgcci; // original cursor state
|
||||
HANDLE hHeap; // local memory heap
|
||||
|
||||
#define CACHE 3
|
||||
#define CACHE 5
|
||||
struct
|
||||
{
|
||||
HANDLE h;
|
||||
|
Loading…
x
Reference in New Issue
Block a user