fix(console coloring): fixed check for \r in get character function
This commit is contained in:
parent
17d4c0e0f9
commit
65ea3ab572
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ IonyError iony_console_get_character(char *character) {
|
|||
return IONY_ERROR_SYSTEM_CALL_FAILED;
|
||||
}
|
||||
|
||||
if (character == '\r') {
|
||||
if (*character == '\r') {
|
||||
if (!ReadFile(iony_standard_console_in, character, 1, &characters_read, 0)) {
|
||||
return IONY_ERROR_SYSTEM_CALL_FAILED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue