mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
[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:
parent
7e4bfb42f2
commit
08d8df3975
|
@ -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);
|
VideoPortDebugPrint(0, "Vendor: %s Product: %s Revision: %s (%lx)\n", Vendor, Product, Revision, OemRevision);
|
||||||
for (i = 0; i < (sizeof(BrokenVesaBiosList) / sizeof(PCHAR)); i++)
|
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 */
|
/* For Brookdale-G (Intel), special hack used */
|
||||||
|
|
Loading…
Reference in a new issue