mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 17:11:35 +00:00
[VBE_NEW][REGEDIT]
- Fix two bugs mentioned by Victor on mailing list. Other bugs was already fixed. svn path=/trunk/; revision=56180
This commit is contained in:
parent
2262d43662
commit
29c75480c5
|
@ -290,7 +290,7 @@ static void REGPROC_unescape_string(WCHAR* str)
|
||||||
str[val_idx] = str[str_idx];
|
str[val_idx] = str[str_idx];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr,"Warning! Unrecognized escape sequence: \\%c'\n",
|
fprintf(stderr,"Warning! Unrecognized escape sequence: \\%C'\n",
|
||||||
str[str_idx]);
|
str[str_idx]);
|
||||||
str[val_idx] = str[str_idx];
|
str[val_idx] = str[str_idx];
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
|
|
||||||
/* GLOBALS ********************************************************************/
|
/* GLOBALS ********************************************************************/
|
||||||
|
|
||||||
static const PCHAR Nv11Board = "NV11 (GeForce2) Board";
|
static const CHAR Nv11Board[] = "NV11 (GeForce2) Board";
|
||||||
static const PCHAR Nv11Chip = "Chip Rev B2";
|
static const CHAR Nv11Chip[] = "Chip Rev B2";
|
||||||
static const PCHAR Nv11Vendor = "NVidia Corporation";
|
static const CHAR Nv11Vendor[] = "NVidia Corporation";
|
||||||
static const PCHAR IntelBrookdale = "Brookdale-G Graphics Controller";
|
static const CHAR IntelBrookdale[] = "Brookdale-G Graphics Controller";
|
||||||
static const PCHAR BrokenVesaBiosList[] =
|
static const PCHAR BrokenVesaBiosList[] =
|
||||||
{
|
{
|
||||||
"SiS 5597",
|
"SiS 5597",
|
||||||
|
@ -51,12 +51,12 @@ IsVesaBiosOk(IN PVIDEO_PORT_INT10_INTERFACE Interface,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For Brookdale-G (Intel), special hack used */
|
/* For Brookdale-G (Intel), special hack used */
|
||||||
g_bIntelBrookdaleBIOS = !strncmp(Product, IntelBrookdale, sizeof(IntelBrookdale));
|
g_bIntelBrookdaleBIOS = !strncmp(Product, IntelBrookdale, sizeof(IntelBrookdale) - 1);
|
||||||
|
|
||||||
/* For NVIDIA make sure */
|
/* For NVIDIA make sure */
|
||||||
if (!(strncmp(Vendor, Nv11Vendor, sizeof(Nv11Vendor))) &&
|
if (!(strncmp(Vendor, Nv11Vendor, sizeof(Nv11Vendor) - 1)) &&
|
||||||
!(strncmp(Product, Nv11Board, sizeof(Nv11Board))) &&
|
!(strncmp(Product, Nv11Board, sizeof(Nv11Board) - 1)) &&
|
||||||
!(strncmp(Revision, Nv11Chip, sizeof(Nv11Chip))) &&
|
!(strncmp(Revision, Nv11Chip, sizeof(Nv11Chip) - 1)) &&
|
||||||
(OemRevision == 0x311))
|
(OemRevision == 0x311))
|
||||||
{
|
{
|
||||||
/* Read version */
|
/* Read version */
|
||||||
|
|
Loading…
Reference in a new issue