Search
lxdream.org :: lxdream/src/maple/vmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/maple/vmu.c
changeset 1172:43eef98ff265
prev1088:cf3900ae8acc
next1298:d0eb2307b847
author Nathan Keynes <nkeynes@lxdream.org>
date Wed May 11 08:45:31 2011 +1000 (12 years ago)
permissions -rw-r--r--
last change Fix returned maple packet length for VMU block reads and get-mem-info
Fix returned block-id in block reads to match the input block-id.
file annotate diff log raw
1.1 --- a/src/maple/vmu.c Fri Dec 04 18:06:12 2009 +1000
1.2 +++ b/src/maple/vmu.c Wed May 11 08:45:31 2011 +1000
1.3 @@ -209,7 +209,9 @@
1.4 break;
1.5 case MAPLE_FUNC_MEMORY:
1.6 if( vmu->vol != NULL ) {
1.7 - vmu_volume_read_block( vmu->vol, pt, block, outbuf );
1.8 + if( vmu_volume_read_block( vmu->vol, pt, block, outbuf ) ) {
1.9 + *buflen = VMU_BLOCK_SIZE/4;
1.10 + }
1.11 return 0;
1.12 }
1.13 // Else fallthrough for now
.