Author: pschweitzer
Date: Wed Sep 9 07:05:17 2015
New Revision: 69143
URL:
http://svn.reactos.org/svn/reactos?rev=69143&view=rev
Log:
[FATTEN]
CORE-10140
Modified:
trunk/reactos/tools/fatten/fatten.c
Modified: trunk/reactos/tools/fatten/fatten.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/fatten/fatten.c?rev=…
==============================================================================
--- trunk/reactos/tools/fatten/fatten.c [iso-8859-1] (original)
+++ trunk/reactos/tools/fatten/fatten.c [iso-8859-1] Wed Sep 9 07:05:17 2015
@@ -293,9 +293,12 @@
if(!fread(buff, 512, 1, fe))
{
printf("Error: unable to read boot sector from file
'%s'.", argv[0]);
- ret = 1;
- goto exit;
- }
+ fclose(fe);
+ ret = 1;
+ goto exit;
+ }
+
+ fclose(fe);
NEED_MOUNT();
@@ -326,8 +329,6 @@
ret = 1;
goto exit;
}
-
- fclose(fe);
}
else if (strcmp(parg, "add") == 0)
{