mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 11:50:19 +08:00
[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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user