mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:05:49 +00:00
[I8042PRT]
Fix an off-by-one error in the SMTABLE string parsing code. Enable SYS_VERSION string for VirtualPc detection. Should hopefully fix VirtualPc mouse. svn path=/trunk/; revision=66825
This commit is contained in:
parent
7a75fa9daf
commit
0d4dc5534b
1 changed files with 7 additions and 3 deletions
|
@ -59,7 +59,7 @@ const HARDWARE_TABLE i8042HardwareTable[] =
|
|||
// { {{BOARD_VENDOR, "RIOWORKS"}, {BOARD_NAME, "HDAMB"}, {BOARD_VERSION, "Rev E"}}, FL_NOLOOP },
|
||||
// { {{BOARD_VENDOR, "ASUSTeK Computer Inc."}, {BOARD_NAME, "G1S"}, {BOARD_VERSION, "1.0"}}, FL_NOLOOP },
|
||||
|
||||
{ {{SYS_VENDOR, "Microsoft Corporation"}, {SYS_PRODUCT, "Virtual Machine"}, /*{SYS_VERSION, "VS2005R2"} */}, FL_INITHACK },
|
||||
{ {{SYS_VENDOR, "Microsoft Corporation"}, {SYS_PRODUCT, "Virtual Machine"}, {SYS_VERSION, "VS2005R2"} }, FL_INITHACK },
|
||||
{ {{SYS_VENDOR, "Dell Inc."}, {SYS_PRODUCT, "Latitude D530"}}, FL_INITHACK },
|
||||
{ {{SYS_VENDOR, "Dell Inc."}, {SYS_PRODUCT, "Latitude D600"}}, FL_INITHACK },
|
||||
|
||||
|
@ -77,15 +77,19 @@ GetDmiString(
|
|||
PCHAR String;
|
||||
|
||||
StringIndex = ((PUCHAR)Header)[FieldOffset];
|
||||
if (StringIndex == 0)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
String = (PCHAR)Header + Header->Length;
|
||||
|
||||
while (StringIndex != 0)
|
||||
while (--StringIndex != 0)
|
||||
{
|
||||
while (*String != 0)
|
||||
String++;
|
||||
|
||||
String++;
|
||||
StringIndex--;
|
||||
}
|
||||
|
||||
return String;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue