Author: aandrejevic
Date: Tue Sep 8 00:54:44 2015
New Revision: 69108
URL:
http://svn.reactos.org/svn/reactos?rev=69108&view=rev
Log:
[FATTEN]
Not every C library out there has fopen_s.
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] Tue Sep 8 00:54:44 2015
@@ -178,7 +178,7 @@
FILE* fe;
FIL fv = { 0 };
- if (fopen_s(&fe, argv[0], "rb"))
+ if (fe = fopen(argv[0], "rb"))
{
printf("Error: unable to open external file '%s' for
reading.", argv[0]);
return 1;
@@ -218,7 +218,7 @@
printf("Error: unable to open file '%s' for reading.",
argv[0]);
return 1;
}
- if (fopen_s(&fv, argv[1], "wb"))
+ if (fv = fopen(argv[1], "wb"))
{
printf("Error: unable to open external file '%s' for
writing.", argv[1]);
return 1;