Author: hbelusca
Date: Sun Mar 12 18:25:21 2017
New Revision: 74156
URL:
http://svn.reactos.org/svn/reactos?rev=74156&view=rev
Log:
[FASTFAT]: Fix an "error C4700: uninitialized local variable 'Entry'
used" that is caught by MSVC 2010 (that pointed out a genuine bug), but mysteriously
unseen by MSVC 2012+, who knows why...
Modified:
trunk/reactos/drivers/filesystems/fastfat/fsctl.c
Modified: trunk/reactos/drivers/filesystems/fastfat/fsctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] Sun Mar 12 18:25:21
2017
@@ -417,9 +417,12 @@
Status = VfatReadDisk(DeviceObject, &FileOffset, PAGE_SIZE,
(PUCHAR)Buffer, TRUE);
if (!NT_SUCCESS(Status))
{
- ExFreePoolWithTag(Entry, TAG_VFAT);
- }
- Entry = Buffer;
+ ExFreePoolWithTag(Buffer, TAG_VFAT);
+ }
+ else
+ {
+ Entry = Buffer;
+ }
}
else
{