Fixed an uninitialized variable error.
Modified: trunk/reactos/ntoskrnl/lpc/connect.c
_____
Modified: trunk/reactos/ntoskrnl/lpc/connect.c
--- trunk/reactos/ntoskrnl/lpc/connect.c 2005-07-23 11:25:12 UTC
(rev 16700)
+++ trunk/reactos/ntoskrnl/lpc/connect.c 2005-07-23 11:43:34 UTC
(rev 16701)
@@ -250,8 +250,8 @@
LPC_SECTION_WRITE WriteMap;
LPC_SECTION_READ ReadMap;
ULONG MaximumMessageSize;
- PVOID ConnectData;
- ULONG ConnectDataLength;
+ PVOID ConnectData = NULL;
+ ULONG ConnectDataLength = 0;
PSECTION_OBJECT SectionObject;
LARGE_INTEGER SectionOffset;
PEPORT ConnectedPort;
@@ -335,13 +335,8 @@
/*
* Handle connection data.
*/
- if (UnsafeConnectData == NULL)
+ if (UnsafeConnectData)
{
- ConnectDataLength = 0;
- ConnectData = NULL;
- }
- else
- {
if (PreviousMode != KernelMode)
{
_SEH_TRY
Show replies by date