The file find object (s_direct) returns 'int' which is only 32 bit. The HANDLE received from FindFirst etc is a void* which is 64 bit on a 64 bit system...
Also in console.h
#define ConMaxCols 256
should be larger. On a 4k monitor is is easy to exceed 256 characters... not sure how much else this will break. I've increased it to 1024 ATM, although 512 is probably enough.
Related PR should be made soon..