Use strncmp instead of equality operator
This commit is contained in:
parent
e04be02c6c
commit
123d00ee51
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ void translate_amiberry_keys(int scancode, int newstate)
|
||||||
inputdevice_add_inputcode(AKS_ENTERGUI, 1);
|
inputdevice_add_inputcode(AKS_ENTERGUI, 1);
|
||||||
}
|
}
|
||||||
#ifdef USE_SDL2
|
#ifdef USE_SDL2
|
||||||
if (currprefs.quit_amiberry != "" && scancode == SDL_GetKeyFromName(currprefs.quit_amiberry))
|
if (strncmp(currprefs.quit_amiberry, "", 1) != 0 && scancode == SDL_GetKeyFromName(currprefs.quit_amiberry))
|
||||||
{
|
{
|
||||||
inputdevice_add_inputcode(AKS_QUIT, 1);
|
inputdevice_add_inputcode(AKS_QUIT, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue