rlutil
rlutil copied to clipboard
fix error when UNICODE defined
trafficstars
Code doesn't currently compile if UNICODE is defined, this fixes that
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.