Author: akhaldi
Date: Mon Oct 14 16:28:14 2013
New Revision: 60664
URL:
http://svn.reactos.org/svn/reactos?rev=60664&view=rev
Log:
[VFATLIB]
* Move readsize into a DBG block.
Modified:
trunk/reactos/lib/fslib/vfatlib/check/io.c
Modified: trunk/reactos/lib/fslib/vfatlib/check/io.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/check/io…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/check/io.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/check/io.c [iso-8859-1] Mon Oct 14 16:28:14 2013
@@ -150,7 +150,9 @@
const size_t readsize_aligned = (size % 512) ? (size + (512 - (size % 512))) : size;
// TMN:
const loff_t seekpos_aligned = pos - (pos % 512); // TMN:
const size_t seek_delta = (size_t)(pos - seekpos_aligned); // TMN:
+#if DBG
const size_t readsize = (size_t)(pos - seekpos_aligned) + readsize_aligned; // TMN:
+#endif
char* tmpBuf = vfalloc(readsize_aligned); // TMN:
if (llseek(fd,seekpos_aligned,0) != seekpos_aligned) pdie("Seek to
%I64d",pos);
if ((got = read(fd,tmpBuf,readsize_aligned)) < 0) pdie("Read %d bytes at
%I64d",size,pos);