[KBDTOOL] Handle failure to parse scancodes. Patch by Víctor Martínez Calvo. CID 1341307 CORE-11177 #resolve

#comment Thanks!

svn path=/trunk/; revision=71271
This commit is contained in:
Mark Jansen 2016-05-07 10:22:45 +00:00
parent 3b58992913
commit 5994ce5887

View file

@ -917,6 +917,14 @@ DoLAYOUT(IN PLAYOUT LayoutData,
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];