[VGA_NEW]

Use strlen() istead of sizeof() to get the string length from a pointer. CID 10403.

svn path=/trunk/; revision=50147
This commit is contained in:
Timo Kreuzer 2010-12-26 14:54:57 +00:00
parent 7e4bfb42f2
commit 08d8df3975

View file

@ -47,7 +47,7 @@ IsVesaBiosOk(IN PVIDEO_PORT_INT10_INTERFACE Interface,
VideoPortDebugPrint(0, "Vendor: %s Product: %s Revision: %s (%lx)\n", Vendor, Product, Revision, OemRevision);
for (i = 0; i < (sizeof(BrokenVesaBiosList) / sizeof(PCHAR)); i++)
{
if (!strncmp(Product, BrokenVesaBiosList[i], sizeof(BrokenVesaBiosList[i]))) return FALSE;
if (!strncmp(Product, BrokenVesaBiosList[i], strlen(BrokenVesaBiosList[i]))) return FALSE;
}
/* For Brookdale-G (Intel), special hack used */