mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[CPORTLIB] Fix MSVC build for PC-98 target
This commit is contained in:
parent
da777baa3d
commit
3fd6dbd943
1 changed files with 3 additions and 3 deletions
|
@ -45,8 +45,8 @@ static BOOLEAN IsNekoProject = FALSE;
|
|||
static BOOLEAN
|
||||
CpIsNekoProject(VOID)
|
||||
{
|
||||
UCHAR Input[3] = "NP2";
|
||||
UCHAR Output[3];
|
||||
UCHAR Input[4] = "NP2";
|
||||
UCHAR Output[4] = {0};
|
||||
UCHAR i;
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
|
@ -55,7 +55,7 @@ CpIsNekoProject(VOID)
|
|||
for (i = 0; i < 3; i++)
|
||||
Output[i] = READ_PORT_UCHAR((PUCHAR)0x7EF);
|
||||
|
||||
return (memcmp(Input, Output, 3) == 0);
|
||||
return (*(PULONG)Input == *(PULONG)Output);
|
||||
}
|
||||
|
||||
static VOID
|
||||
|
|
Loading…
Reference in a new issue