libfreerdp: some possible errors spotted in locale
This commit is contained in:
parent
7efbd3522b
commit
5f13a4049c
@ -128,7 +128,7 @@ int freerdp_keyboard_load_map(UINT32 keycode_to_vkcode[256], char* name)
|
|||||||
keycode = atoi(keycode_string);
|
keycode = atoi(keycode_string);
|
||||||
|
|
||||||
/* Make sure it is a valid keycode */
|
/* Make sure it is a valid keycode */
|
||||||
if (keycode < 0 || keycode > 255)
|
if (keycode < 0 || keycode > 255) //Corey: keycode cant be less than 0...
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Load this key mapping in the keyboard mapping */
|
/* Load this key mapping in the keyboard mapping */
|
||||||
@ -185,7 +185,7 @@ void freerdp_keyboard_load_maps(UINT32 keycode_to_vkcode[256], char* names)
|
|||||||
char* names_end;
|
char* names_end;
|
||||||
int keymap_loaded = 0;
|
int keymap_loaded = 0;
|
||||||
|
|
||||||
memset(keycode_to_vkcode, 0, sizeof(keycode_to_vkcode));
|
memset(keycode_to_vkcode, 0, sizeof(keycode_to_vkcode)); //Corey: should this be sizeof() * elements ???
|
||||||
|
|
||||||
kbd = names;
|
kbd = names;
|
||||||
names_end = names + strlen(names);
|
names_end = names + strlen(names);
|
||||||
|
Loading…
Reference in New Issue
Block a user