[ros-diffs] [weiden] 23828: Use the new ProbeForWriteIoStatusBlock macro

weiden at svn.reactos.org weiden at svn.reactos.org
Wed Aug 30 23:45:18 CEST 2006


Author: weiden
Date: Thu Aug 31 01:45:17 2006
New Revision: 23828

URL: http://svn.reactos.org/svn/reactos?rev=23828&view=rev
Log:
Use the new ProbeForWriteIoStatusBlock macro

Modified:
    trunk/reactos/ntoskrnl/io/iomgr/file.c
    trunk/reactos/ntoskrnl/io/iomgr/iocomp.c
    trunk/reactos/ntoskrnl/io/iomgr/iofunc.c

Modified: trunk/reactos/ntoskrnl/io/iomgr/file.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/file.c?rev=23828&r1=23827&r2=23828&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/file.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/file.c Thu Aug 31 01:45:17 2006
@@ -1271,9 +1271,7 @@
         _SEH_TRY
         {
             ProbeForWriteHandle(FileHandle);
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
             if (AllocationSize)
             {
                 SafeAllocationSize = ProbeForReadLargeInteger(AllocationSize);
@@ -2150,9 +2148,7 @@
         _SEH_TRY
         {
             /* Probe the I/O Status Block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
         }
         _SEH_HANDLE
         {

Modified: trunk/reactos/ntoskrnl/io/iomgr/iocomp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iocomp.c?rev=23828&r1=23827&r2=23828&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/iocomp.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/iocomp.c Thu Aug 31 01:45:17 2006
@@ -429,9 +429,7 @@
             ProbeForWritePointer(ApcContext);
 
             /* Probe the I/O Status Block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
             if (Timeout)
             {
                 /* Probe and capture the timeout */

Modified: trunk/reactos/ntoskrnl/io/iomgr/iofunc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/iofunc.c?rev=23828&r1=23827&r2=23828&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/iofunc.c (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/iofunc.c Thu Aug 31 01:45:17 2006
@@ -218,9 +218,7 @@
         _SEH_TRY
         {
             /* Probe the status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Check if this is buffered I/O */
             if (AccessType == METHOD_BUFFERED)
@@ -826,9 +824,7 @@
         _SEH_TRY
         {
             /* Probe the I/O Status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
         }
         _SEH_HANDLE
         {
@@ -960,9 +956,7 @@
         _SEH_TRY
         {
             /* Probe the I/O STatus block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe the buffer */
             if (BufferSize) ProbeForWrite(Buffer, BufferSize, sizeof(ULONG));
@@ -1104,9 +1098,7 @@
         _SEH_TRY
         {
             /* Probe the I/O STatus block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe and capture the large integers */
             CapturedByteOffset = ProbeForReadLargeInteger(ByteOffset);
@@ -1263,9 +1255,7 @@
         _SEH_TRY
         {
             /* Probe the I/O Status Block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe the file information */
             ProbeForWrite(FileInformation, Length, sizeof(ULONG));
@@ -1502,9 +1492,7 @@
         _SEH_TRY
         {
             /* Probe the I/O Status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe the information */
             if (Length) ProbeForWrite(FileInformation, Length, 1);
@@ -1783,9 +1771,7 @@
         _SEH_TRY
         {
             /* Probe the status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe the read buffer */
             ProbeForWrite(Buffer, Length, 1);
@@ -2046,9 +2032,7 @@
         _SEH_TRY
         {
             /* Probe the I/O Status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe the information */
             if (Length) ProbeForRead(FileInformation, Length, 1);
@@ -2407,9 +2391,7 @@
         _SEH_TRY
         {
             /* Probe the I/O Status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe and capture the large integers */
             CapturedByteOffset = ProbeForReadLargeInteger(ByteOffset);
@@ -2597,9 +2579,7 @@
             }
 
             /* Probe the status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe the read buffer */
             ProbeForRead(Buffer, Length, 1);
@@ -2839,9 +2819,7 @@
         _SEH_TRY
         {
             /* Probe the I/O Status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe the information */
             if (Length) ProbeForWrite(FsInformation, Length, 1);
@@ -2989,9 +2967,7 @@
         _SEH_TRY
         {
             /* Probe the I/O Status block */
-            ProbeForWrite(IoStatusBlock,
-                          sizeof(IO_STATUS_BLOCK),
-                          sizeof(ULONG));
+            ProbeForWriteIoStatusBlock(IoStatusBlock);
 
             /* Probe the information */
             if (Length) ProbeForRead(FsInformation, Length, 1);




More information about the Ros-diffs mailing list