Index: sdk/tools/kbdtool/parser.c =================================================================== --- sdk/tools/kbdtool/parser.c (revision 71259) +++ sdk/tools/kbdtool/parser.c (working copy) @@ -917,7 +917,14 @@ exit(1); } } + + /* Check if we have found any ScanCode in the file */ + if (ScanCodeCount == -1){ + printf("No ScanCode found!\n"); + exit(1); + } + /* Process the scan code table */ Entry = &LayoutData->Entry[ScanCodeCount]; for (i = 0; i < 110; i++)