Author: hbelusca
Date: Thu Oct 23 12:21:46 2014
New Revision: 64923
URL:
http://svn.reactos.org/svn/reactos?rev=64923&view=rev
Log:
[NTVDM]: Addendum to revision 64917: remove unnecessary casts.
Modified:
trunk/reactos/subsystems/ntvdm/io.c
trunk/reactos/subsystems/ntvdm/io.h
Modified: trunk/reactos/subsystems/ntvdm/io.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/io.c?rev=…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/io.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/io.c [iso-8859-1] Thu Oct 23 12:21:46 2014
@@ -70,7 +70,7 @@
{
UCHAR Data;
ASSERT(Port <= MAXWORD);
- IoPortProc[Port].VddIoHandlers.inb_handler((WORD)Port, &Data);
+ IoPortProc[Port].VddIoHandlers.inb_handler(Port, &Data);
return Data;
}
else
@@ -82,7 +82,7 @@
}
VOID
-IOReadStrB(USHORT Port,
+IOReadStrB(USHORT Port,
PUCHAR Buffer,
ULONG Count)
{
@@ -96,7 +96,7 @@
{
ASSERT(Port <= MAXWORD);
ASSERT(Count <= MAXWORD);
- IoPortProc[Port].VddIoHandlers.insb_handler((WORD)Port, Buffer, (WORD)Count);
+ IoPortProc[Port].VddIoHandlers.insb_handler(Port, Buffer, (WORD)Count);
}
else
{
@@ -106,7 +106,7 @@
VOID
IOWriteB(USHORT Port,
- UCHAR Buffer)
+ UCHAR Buffer)
{
if (IoPortProc[Port].hVdd == INVALID_HANDLE_VALUE &&
IoPortProc[Port].IoHandlers.OutB)
@@ -117,7 +117,7 @@
IoPortProc[Port].VddIoHandlers.outb_handler)
{
ASSERT(Port <= MAXWORD);
- IoPortProc[Port].VddIoHandlers.outb_handler((WORD)Port, Buffer);
+ IoPortProc[Port].VddIoHandlers.outb_handler(Port, Buffer);
}
else
{
@@ -127,7 +127,7 @@
}
VOID
-IOWriteStrB(USHORT Port,
+IOWriteStrB(USHORT Port,
PUCHAR Buffer,
ULONG Count)
{
@@ -141,7 +141,7 @@
{
ASSERT(Port <= MAXWORD);
ASSERT(Count <= MAXWORD);
- IoPortProc[Port].VddIoHandlers.outsb_handler((WORD)Port, Buffer, (WORD)Count);
+ IoPortProc[Port].VddIoHandlers.outsb_handler(Port, Buffer, (WORD)Count);
}
else
{
@@ -162,7 +162,7 @@
{
USHORT Data;
ASSERT(Port <= MAXWORD);
- IoPortProc[Port].VddIoHandlers.inw_handler((WORD)Port, &Data);
+ IoPortProc[Port].VddIoHandlers.inw_handler(Port, &Data);
return Data;
}
else
@@ -177,7 +177,7 @@
}
VOID
-IOReadStrW(USHORT Port,
+IOReadStrW(USHORT Port,
PUSHORT Buffer,
ULONG Count)
{
@@ -191,7 +191,7 @@
{
ASSERT(Port <= MAXWORD);
ASSERT(Count <= MAXWORD);
- IoPortProc[Port].VddIoHandlers.insw_handler((WORD)Port, Buffer, (WORD)Count);
+ IoPortProc[Port].VddIoHandlers.insw_handler(Port, Buffer, (WORD)Count);
}
else
{
@@ -200,7 +200,7 @@
}
VOID
-IOWriteW(USHORT Port,
+IOWriteW(USHORT Port,
USHORT Buffer)
{
if (IoPortProc[Port].hVdd == INVALID_HANDLE_VALUE &&
@@ -212,7 +212,7 @@
IoPortProc[Port].VddIoHandlers.outw_handler)
{
ASSERT(Port <= MAXWORD);
- IoPortProc[Port].VddIoHandlers.outw_handler((WORD)Port, Buffer);
+ IoPortProc[Port].VddIoHandlers.outw_handler(Port, Buffer);
}
else
{
@@ -223,7 +223,7 @@
}
VOID
-IOWriteStrW(USHORT Port,
+IOWriteStrW(USHORT Port,
PUSHORT Buffer,
ULONG Count)
{
@@ -237,7 +237,7 @@
{
ASSERT(Port <= MAXWORD);
ASSERT(Count <= MAXWORD);
- IoPortProc[Port].VddIoHandlers.outsw_handler((WORD)Port, Buffer, (WORD)Count);
+ IoPortProc[Port].VddIoHandlers.outsw_handler(Port, Buffer, (WORD)Count);
}
else
{
@@ -265,7 +265,7 @@
}
VOID
-IOReadStrD(USHORT Port,
+IOReadStrD(USHORT Port,
PULONG Buffer,
ULONG Count)
{
@@ -282,7 +282,7 @@
VOID
IOWriteD(USHORT Port,
- ULONG Buffer)
+ ULONG Buffer)
{
if (IoPortProc[Port].hVdd == INVALID_HANDLE_VALUE &&
IoPortProc[Port].IoHandlers.OutD)
@@ -298,7 +298,7 @@
}
VOID
-IOWriteStrD(USHORT Port,
+IOWriteStrD(USHORT Port,
PULONG Buffer,
ULONG Count)
{
Modified: trunk/reactos/subsystems/ntvdm/io.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/ntvdm/io.h?rev=…
==============================================================================
--- trunk/reactos/subsystems/ntvdm/io.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/ntvdm/io.h [iso-8859-1] Thu Oct 23 12:21:46 2014
@@ -36,45 +36,45 @@
UCHAR
IOReadB(USHORT Port);
VOID
-IOReadStrB(USHORT Port,
+IOReadStrB(USHORT Port,
PUCHAR Buffer,
ULONG Count);
VOID
IOWriteB(USHORT Port,
- UCHAR Buffer);
+ UCHAR Buffer);
VOID
-IOWriteStrB(USHORT Port,
+IOWriteStrB(USHORT Port,
PUCHAR Buffer,
ULONG Count);
USHORT
IOReadW(USHORT Port);
VOID
-IOReadStrW(USHORT Port,
+IOReadStrW(USHORT Port,
PUSHORT Buffer,
ULONG Count);
VOID
-IOWriteW(USHORT Port,
+IOWriteW(USHORT Port,
USHORT Buffer);
VOID
-IOWriteStrW(USHORT Port,
+IOWriteStrW(USHORT Port,
PUSHORT Buffer,
ULONG Count);
ULONG
IOReadD(USHORT Port);
VOID
-IOReadStrD(USHORT Port,
+IOReadStrD(USHORT Port,
PULONG Buffer,
ULONG Count);
VOID
IOWriteD(USHORT Port,
- ULONG Buffer);
+ ULONG Buffer);
VOID
-IOWriteStrD(USHORT Port,
+IOWriteStrD(USHORT Port,
PULONG Buffer,
ULONG Count);