X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fsubsystems%2Fntvdm%2Fhardware%2Fcmos.c;h=7ae7cf34e27778a2377471452057ecd387852ecd;hp=47306ebcd8d9c1d9d788f0205bad5373f19e8fe4;hb=f991665f099740668d9e7c7fe03b83ebddf04aa3;hpb=e393b80e0760247abdf900cfdc5158a0d501bba1 diff --git a/reactos/subsystems/ntvdm/hardware/cmos.c b/reactos/subsystems/ntvdm/hardware/cmos.c index 47306ebcd8d..7ae7cf34e27 100644 --- a/reactos/subsystems/ntvdm/hardware/cmos.c +++ b/reactos/subsystems/ntvdm/hardware/cmos.c @@ -342,13 +342,13 @@ VOID CmosWriteData(BYTE Value) SelectedRegister = CMOS_REG_STATUS_D; } -BYTE WINAPI CmosReadPort(ULONG Port) +BYTE WINAPI CmosReadPort(USHORT Port) { ASSERT(Port == CMOS_DATA_PORT); return CmosReadData(); } -VOID WINAPI CmosWritePort(ULONG Port, BYTE Data) +VOID WINAPI CmosWritePort(USHORT Port, BYTE Data) { if (Port == CMOS_ADDRESS_PORT) CmosWriteAddress(Data); @@ -428,7 +428,7 @@ VOID CmosInitialize(VOID) ASSERT(hCmosRam == INVALID_HANDLE_VALUE); /* Clear the CMOS memory */ - ZeroMemory(&CmosMemory, sizeof(CmosMemory)); + RtlZeroMemory(&CmosMemory, sizeof(CmosMemory)); /* Always open (and if needed, create) a RAM file with shared access */ SetLastError(0); // For debugging purposes @@ -452,7 +452,7 @@ VOID CmosInitialize(VOID) { /* Bad CMOS Ram file. Reinitialize the CMOS memory. */ DPRINT1("Invalid CMOS file, read bytes %u, expected bytes %u\n", CmosSize, sizeof(CmosMemory)); - ZeroMemory(&CmosMemory, sizeof(CmosMemory)); + RtlZeroMemory(&CmosMemory, sizeof(CmosMemory)); } DPRINT1("CMOS loading %s ; GetLastError() = %u\n", Success ? "succeeded" : "failed", GetLastError()); SetFilePointer(hCmosRam, 0, NULL, FILE_BEGIN);