Initialize the length in the header in LpcSendTerminationPort.
authorHartmut Birr <osexpert@googlemail.com>
Thu, 8 Sep 2005 20:12:33 +0000 (20:12 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Thu, 8 Sep 2005 20:12:33 +0000 (20:12 +0000)
svn path=/trunk/; revision=17748

reactos/ntoskrnl/lpc/send.c

index 8d07b1e..8725e56 100644 (file)
@@ -38,6 +38,8 @@ LpcSendTerminationPort (IN PEPORT Port,
 #ifdef __USE_NT_LPC__
   Msg.h.u2.s2.Type = LPC_CLIENT_DIED;
 #endif
+  Msg.h.u1.s1.TotalLength = sizeof(Msg);
+  Msg.h.u1.s1.DataLength = sizeof(Msg) - sizeof(PORT_MESSAGE);
   Msg.CreateTime = CreateTime;
   Status = LpcRequestPort (Port, &Msg.h);
   return(Status);