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:
Jason Hood 2017-10-28 12:31:35 +10:00
parent 67f1d48801
commit df5596f65f

5
ANSI.c
View File

@ -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;