[prev in list] [next in list] [prev in thread] [next in thread]
List: ros-diffs
Subject: [ros-diffs] [CVS reactos] - Avoid a crashing when trying to process
From: dwelch () osexperts ! com (David Welch)
Date: 2004-02-24 23:51:04
Message-ID: 20040224235104.2C4EB43A9 () mok ! osexperts ! com
[Download RAW message or body]
<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>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in \
<b><tt>reactos/ntoskrnl/rtl/i386</tt></b><span id="info"> on MAIN</span></td></tr> \
<tr><td><tt><a href="#file1">exception.c</a></tt></td><td align="right" \
id="added">+10</td><td align="right" id="removed">-1</td><td nowrap="nowrap" \
align="center"><a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl/rtl/i386/exception.c?rev=1.9&content-type=text/x-cvsweb-markup">1.9</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl/rtl/i386/exception.c.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&f=h">-></a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl/rtl/i386/exception.c?rev=1.10&content-type=text/x-cvsweb-markup">1.10</a></td></tr>
</table>
<pre class="comment">
- Avoid a crashing when trying to process an exception early in the boot process.
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos">reactos</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl">ntoskrnl</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl/rtl">rtl</a>/<a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl/rtl/i386">i386</a><br \
/></span> <div class="fileheader"><big><b>exception.c</b></big> <small id="info"><a \
href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl/rtl/i386/exception.c?rev=1.9&content-type=text/x-cvsweb-markup">1.9</a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl/rtl/i386/exception.c.diff?r1=text&tr1=1.9&r2=text&tr2=1.10&f=h">-></a> \
<a href="http://cvs.reactos.com/cgi-bin/cvsweb/reactos/ntoskrnl/rtl/i386/exception.c?rev=1.10&content-type=text/x-cvsweb-markup">1.10</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.9 -r1.10
--- exception.c 30 Dec 2003 18:52:06 -0000 1.9
+++ exception.c 24 Feb 2004 23:51:04 -0000 1.10
@@ -1,4 +1,4 @@
</small></pre><pre class="diff" id="removed">-/* $Id: exception.c,v 1.9 2003/12/30 \
18:52:06 fireball Exp $ </pre><pre class="diff" id="added">+/* $Id: exception.c,v \
1.10 2004/02/24 23:51:04 dwelch Exp $ </pre><pre class="diff" id="context"> *
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
</pre><pre class="diff"><small id="info">@@ -165,6 +165,15 @@
</small></pre><pre class="diff" id="context">
DPRINT("RtlpDispatchException()\n");
</pre><pre class="diff" id="added">+ /*
+ This could be true very early in the boot process
+ in which case there is no point in continuing.
+ */
+ if (KeGetCurrentThread() == NULL)
+ {
+ return ExceptionContinueExecution;
+ }
+
</pre><pre class="diff" id="context"> #ifndef NDEBUG
RtlpDumpExceptionRegistrations();
#endif /* NDEBUG */
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" \
title="commit -> email">CVSspam</a> 0.2.8</small></center> </body></html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic