More fixes to compile.
[reactos.git] / reactos / subsys / csr / csrsrv / api.c
index ba7ccf5..29f01f1 100644 (file)
@@ -685,9 +685,9 @@ NTSTATUS
 NTAPI\r
 CsrApiHandleConnectionRequest(IN PCSR_API_MESSAGE ApiMessage)\r
 {\r
-    PCSR_THREAD CsrThread;\r
-    PCSR_PROCESS CsrProcess;\r
-    NTSTATUS Status;\r
+    PCSR_THREAD CsrThread = NULL;\r
+    PCSR_PROCESS CsrProcess = NULL;\r
+    NTSTATUS Status = STATUS_SUCCESS;\r
     PCSR_CONNECTION_INFO ConnectInfo = &ApiMessage->ConnectionInfo;\r
     BOOLEAN AllowConnection = FALSE;\r
     REMOTE_PORT_VIEW RemotePortView;\r
@@ -1124,13 +1124,13 @@ NTAPI
 CsrCaptureArguments(IN PCSR_THREAD CsrThread,\r
                     IN PCSR_API_MESSAGE ApiMessage)\r
 {\r
-    PCSR_CAPTURE_BUFFER LocalCaptureBuffer;\r
-    ULONG LocalLength;\r
-    PCSR_CAPTURE_BUFFER RemoteCaptureBuffer;\r
-    SIZE_T BufferDistance;\r
-    ULONG PointerCount;\r
-    ULONG_PTR **PointerOffsets;\r
-    ULONG_PTR *CurrentPointer;\r
+    PCSR_CAPTURE_BUFFER LocalCaptureBuffer = NULL;\r
+    ULONG LocalLength = 0;\r
+    PCSR_CAPTURE_BUFFER RemoteCaptureBuffer = NULL;\r
+    SIZE_T BufferDistance = 0;\r
+    ULONG PointerCount = 0;\r
+    ULONG_PTR **PointerOffsets = NULL;\r
+    ULONG_PTR *CurrentPointer = NULL;\r
 \r
     /* Use SEH to make sure this is valid */\r
     _SEH_TRY\r