Open TheKrush opened 8 years ago
Hello Windows my old friend...
sigh :+1:
a better choice (i think):
#ifdef UNICODE
WriteConsoleOutputCharacterA(hConsoleOutput, str, len, csbi.dwCursorPosition, &numberOfCharsWritten);
#else // UNICODE
WriteConsoleOutputCharacter(hConsoleOutput, str, len, csbi.dwCursorPosition, &numberOfCharsWritten);
#endif // UNICODE
@TheKrush can you amend your commit based on @ardi69 suggestion? Merely add #ifdef UNICODE
:)
There is also #48
Done.
There is no reason to use #ifdef UNICODE
, because when UNICODE isn't defined, WriteConsoleOutputCharacter
simply calls WriteConsoleOutputCharacterA
.
Code doesn't currently compile if UNICODE is defined, this fixes that