Author: cfinck
Date: Wed Aug 16 23:12:55 2017
New Revision: 75581
URL:
http://svn.reactos.org/svn/reactos?rev=75581&view=rev
Log:
[CDFS]
Fix uninitialized variable usage (why did neither MSVC nor GCC catch this?)
Modified:
trunk/reactos/drivers/filesystems/cdfs/fsctl.c
Modified: trunk/reactos/drivers/filesystems/cdfs/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/cdfs/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/cdfs/fsctl.c [iso-8859-1] Wed Aug 16 23:12:55 2017
@@ -237,14 +237,14 @@
/* FIXME: should be done only for real cdroms? */
Offset -= 150;
}
- CdInfo->VolumeOffset = Offset;
}
else
{
DPRINT1("Allowing mount of CDFS volume on non-CD device\n");
- CdInfo->VolumeOffset = 0;
+ Offset = 0;
}
+ CdInfo->VolumeOffset = Offset;
DPRINT("Offset of first track in last session %u\n", Offset);
CdInfo->JolietLevel = 0;