mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[FATTEN]
Not every C library out there has fopen_s. svn path=/trunk/; revision=69108
This commit is contained in:
parent
3ee0bc2311
commit
d5d4c72825
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ int main(int oargc, char* oargv[])
|
|||
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 @@ int main(int oargc, char* oargv[])
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue