Fix printing of packet contents to really print the contents instead of destroying...
[reactos.git] / reactos / drivers / net / ndis / ndis / miniport.c
index 31f34a7..6edd45e 100644 (file)
@@ -108,8 +108,7 @@ MiniDisplayPacket2(
         for (i = 0; i < HeaderBufferSize; i++) {
             if (i % 16 == 0)
                 DbgPrint("\n%04X ", i);
         for (i = 0; i < HeaderBufferSize; i++) {
             if (i % 16 == 0)
                 DbgPrint("\n%04X ", i);
-            DbgPrint("%02X ", *p);
-            *(ULONG_PTR*)p += 1;
+            DbgPrint("%02X ", *p++);
         }
 
         DbgPrint("\nFRAME:");
         }
 
         DbgPrint("\nFRAME:");
@@ -119,8 +118,7 @@ MiniDisplayPacket2(
         for (i = 0; i < Length; i++) {
             if (i % 16 == 0)
                 DbgPrint("\n%04X ", i);
         for (i = 0; i < Length; i++) {
             if (i % 16 == 0)
                 DbgPrint("\n%04X ", i);
-            DbgPrint("%02X ", *p);
-            *(ULONG_PTR*)p += 1;
+            DbgPrint("%02X ", *p++);
         }
 
         DbgPrint("\n*** RECEIVE PACKET STOP ***\n");
         }
 
         DbgPrint("\n*** RECEIVE PACKET STOP ***\n");