···12121313static BOOLEAN
1414VgaInterpretCmdStream(
1515- _In_ PUSHORT CmdStream)
1515+ _In_ const USHORT* CmdStream)
1616{
1717 USHORT Cmd;
1818 UCHAR Major, Minor;
···2323 USHORT ShortValue;
24242525 /* First make sure that we have a Command Stream */
2626- if (!CmdStream) return TRUE;
2626+ if (!CmdStream)
2727+ return TRUE;
27282829 /* Loop as long as we have commands */
2930 while (*CmdStream != EOD)
···6364 Count = *CmdStream++;
64656566 /* Write the USHORT to the port; the buffer is what's in the command stream */
6666- WRITE_PORT_BUFFER_USHORT((PUSHORT)(VgaRegisterBase + Port), CmdStream, Count);
6767+ WRITE_PORT_BUFFER_USHORT((PUSHORT)(VgaRegisterBase + Port), (PUSHORT)CmdStream, Count);
67686869 /* Move past the buffer in the command stream */
6970 CmdStream += Count;