<html>
<body>
  <div id="body" style="background-color:#ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head" style="border-bottom-width:1px;border-bottom-style:solid;" ><td class="headtd" style="padding:0;padding-top:.2em;" colspan="4">Commit in <b><tt>lxdream/src</tt></b></td></tr>
<tr><td><tt><a href="#file1">dcload.c</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+2</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-2</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">ef8b0ddb8185 -> b41d4dc2c83e</td></tr>
</table>
<pre class="comment" style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd;" >
Fix dcload file handling bugs, patch from Guinux, thanks!
</pre>
<hr /><a name="file1" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>dcload.c</b></big> <small id="info" style="color: #888888;" >ef8b0ddb8185 -> b41d4dc2c83e</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/dcload.c
+++ lxdream/src/dcload.c
@@ -106,7 +106,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         if( fd < 0 || fd >= MAX_OPEN_FDS || open_fds[fd] == -1 ) {
             sh4r.r[0] = -1;
         } else {
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-            sh4r.r[0] = lseek( open_fds[fd], sh4r.r[6], sh4r.r[7] );
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+            sh4r.r[0] = lseek( open_fds[fd], <span id="addedchars" style="background-color:#99ff99;font-weight:bolder;" >(int32_t)</span>sh4r.r[6], sh4r.r[7] );
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         }
         break;
 
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -120,7 +120,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >                 char *filename = (char *)mem_get_region( sh4r.r[5] );
                 int realfd = open( filename, sh4r.r[6] );
                 open_fds[fd] = realfd;
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-                sh4r.r[0] = <span id="removedchars" style="background-color:#ff9999;font-weight:bolder;" >real</span>fd;
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+                sh4r.r[0] = fd;
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >             }
         } else {
             ERROR( "Denying access to local filesystem" );
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>