mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user