<html>
<head>
<style>
<!--
body { background-color:#ffffff }
.file { border:1px solid #eeeeee; margin-top:1em; margin-bottom:1em }
.pathname { font-family:monospace; float:right }
.fileheader { margin-bottom:.5em }
.diff { margin:0 }
.tasklist { padding:4px; border:1px dashed #000000; margin-top:1em }
.tasklist ul { margin-top:0; margin-bottom:0 }
tr.alt { background-color:#eeeeee }
#added { background-color:#ddffdd }
#addedchars { background-color:#99ff99; font-weight:bolder }
tr.alt #added { background-color:#ccf7cc }
#removed { background-color:#ffdddd }
#removedchars { background-color:#ff9999; font-weight:bolder }
tr.alt #removed { background-color:#f7cccc }
#info { color:#888888 }
#context { background-color:#eeeeee }
td {padding-left:.3em; padding-right:.3em }
tr.head { border-bottom-width:1px; border-bottom-style:solid }
tr.head td { padding:0; padding-top:.2em }
.task { background-color:#ffff00 }
.comment { padding:4px; border:1px dashed #000000; background-color:#ffffdd }
.error { color:red }
hr { border-width:0px; height:2px; background:black }
-->
</style>
</head>
<body>
<pre class="comment">- Use the actual previous mode (spotted by Thomas)</pre><pre class="diff" id="context">Modified: trunk/reactos/ntoskrnl/lpc/connect.c
</pre><hr /><div class="file">
<div class="fileheader"><big><b>Modified: trunk/reactos/ntoskrnl/lpc/connect.c</b></big></div>
<pre class="diff"><small id="info">--- trunk/reactos/ntoskrnl/lpc/connect.c        2005-08-09 03:31:22 UTC (rev 17224)
+++ trunk/reactos/ntoskrnl/lpc/connect.c        2005-08-09 03:38:34 UTC (rev 17225)
@@ -410,7 +410,7 @@
</small></pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NULL,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PORT_ALL_ACCESS, &nbsp;/* DesiredAccess */
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LpcPortObjectType,
</pre><pre class="diff" id="removed">- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span id="removedchars">User</span>Mode,
</pre><pre class="diff" id="added">+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span id="addedchars">Previous</span>Mode,
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NULL,
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (PVOID*)&amp;NamedPort);
 &nbsp; if (!NT_SUCCESS(Status))
@@ -430,7 +430,7 @@
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; Status = ObReferenceObjectByHandle(WriteMap.SectionHandle,
                                          SECTION_MAP_READ | SECTION_MAP_WRITE,
                                          MmSectionObjectType,
</pre><pre class="diff" id="removed">-                                         <span id="removedchars">User</span>Mode,
</pre><pre class="diff" id="added">+                                         <span id="addedchars">Previous</span>Mode,
</pre><pre class="diff" id="context">                                          (PVOID*)&amp;SectionObject,
                                          NULL);
 &nbsp; &nbsp; &nbsp; if (!NT_SUCCESS(Status))
@@ -669,6 +669,7 @@
</pre><pre class="diff" id="context"> &nbsp; PEPORT_CONNECT_REQUEST_MESSAGE CRequest;
 &nbsp; PEPORT_CONNECT_REPLY_MESSAGE CReply;
 &nbsp; ULONG Size;
</pre><pre class="diff" id="added">+ &nbsp;KPROCESSOR_MODE PreviousMode = ExGetPreviousMode();
</pre><pre class="diff" id="context"> 
 &nbsp; Size = sizeof(EPORT_CONNECT_REPLY_MESSAGE);
 &nbsp; if (LpcMessage)
@@ -685,7 +686,7 @@
</pre><pre class="diff" id="context"> &nbsp; Status = ObReferenceObjectByHandle(NamedPortHandle,
                                  &nbsp; &nbsp; PORT_ALL_ACCESS,
                                  &nbsp; &nbsp; LpcPortObjectType,
</pre><pre class="diff" id="removed">-                                 &nbsp; &nbsp; <span id="removedchars">User</span>Mode,
</pre><pre class="diff" id="added">+                                 &nbsp; &nbsp; <span id="addedchars">Previous</span>Mode,
</pre><pre class="diff" id="context">                                  &nbsp; &nbsp; (PVOID*)&amp;NamedPort,
                                  &nbsp; &nbsp; NULL);
 &nbsp; if (!NT_SUCCESS(Status))
@@ -699,10 +700,10 @@
</pre><pre class="diff" id="context"> &nbsp; &nbsp;*/
 &nbsp; if (AcceptIt)
 &nbsp; &nbsp; {
</pre><pre class="diff" id="removed">- &nbsp; &nbsp; &nbsp;Status = ObCreateObject(<span id="removedchars">ExGetPreviousMode()</span>,
</pre><pre class="diff" id="added">+ &nbsp; &nbsp; &nbsp;Status = ObCreateObject(<span id="addedchars">PreviousMode</span>,
</pre><pre class="diff" id="context">                          &nbsp; &nbsp; &nbsp;LpcPortObjectType,
                          &nbsp; &nbsp; &nbsp;NULL,
</pre><pre class="diff" id="removed">-                         &nbsp; &nbsp; &nbsp;<span id="removedchars">ExGetPreviousMode()</span>,
</pre><pre class="diff" id="added">+                         &nbsp; &nbsp; &nbsp;<span id="addedchars">PreviousMode</span>,
</pre><pre class="diff" id="context">                          &nbsp; &nbsp; &nbsp;NULL,
                          &nbsp; &nbsp; &nbsp;sizeof(EPORT),
                          &nbsp; &nbsp; &nbsp;0,
@@ -789,7 +790,7 @@
</pre><pre class="diff" id="context"> &nbsp; &nbsp; &nbsp; Status = ObReferenceObjectByHandle(WriteMap-&gt;SectionHandle,
                                          SECTION_MAP_READ | SECTION_MAP_WRITE,
                                          MmSectionObjectType,
</pre><pre class="diff" id="removed">-                                         <span id="removedchars">User</span>Mode,
</pre><pre class="diff" id="added">+                                         <span id="addedchars">Previous</span>Mode,
</pre><pre class="diff" id="context">                                          (PVOID*)&amp;SectionObject,
                                          NULL);
 &nbsp; &nbsp; &nbsp; if (!NT_SUCCESS(Status))
</pre>
</div>

</body>
</html>