More work on winsock stack (ping is now working)
[reactos.git] / reactos / drivers / net / afd / afd / event.c
index f1743bc..425df8b 100644 (file)
@@ -120,6 +120,9 @@ NTSTATUS AfdEventReceiveDatagramHandler(
     return STATUS_INSUFFICIENT_RESOURCES;
   }
 
     return STATUS_INSUFFICIENT_RESOURCES;
   }
 
+  /* Copy the data to a local buffer */
+  RtlCopyMemory(ReceiveBuffer, Tsdu, BytesAvailable);
+
   Buffer->Buffer.len = BytesAvailable;
   Buffer->Buffer.buf = ReceiveBuffer;
 
   Buffer->Buffer.len = BytesAvailable;
   Buffer->Buffer.buf = ReceiveBuffer;