diff options
Diffstat (limited to 'StdLib/LibC')
-rw-r--r-- | StdLib/LibC/Uefi/Devices/Console/daConsole.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/StdLib/LibC/Uefi/Devices/Console/daConsole.c b/StdLib/LibC/Uefi/Devices/Console/daConsole.c index bfcc4a292c..4897a2e56e 100644 --- a/StdLib/LibC/Uefi/Devices/Console/daConsole.c +++ b/StdLib/LibC/Uefi/Devices/Console/daConsole.c @@ -77,8 +77,9 @@ WideTtyCvt( CHAR16 *dest, const char *buf, ssize_t n, mbstate_t *Cs) if( numB == 0) {
break;
};
- if(numB < 0) {
+ if(numB < 0) { // If an unconvertable character, replace it.
wc[0] = BLOCKELEMENT_LIGHT_SHADE;
+ numB = 1;
}
if(wc[0] == L'\n') {
*dest++ = L'\r';
|