mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:13:06 +00:00
[rosapps]
- Avoid old crt names usage, by Caemyr/kjk_hyperion. svn path=/trunk/; revision=44107
This commit is contained in:
parent
94d60cdacc
commit
effa38586c
10 changed files with 25 additions and 25 deletions
|
@ -69,7 +69,7 @@ loadFile(const char *fileName, int *fileSize_)
|
|||
}
|
||||
|
||||
/* Get file size */
|
||||
if (fstat(fileno(f), &sb) < 0)
|
||||
if (fstat(_fileno(f), &sb) < 0)
|
||||
{
|
||||
fclose(f);
|
||||
printf("Couldn't get size of file %s!\n", fileName);
|
||||
|
@ -506,7 +506,7 @@ applyPatch_file_open_error:
|
|||
_snprintf(buffer, MAX_PATH, "%s.bak", fileName);
|
||||
buffer[MAX_PATH-1] = '\0';
|
||||
makeBackup = 1;
|
||||
if (access(buffer, 0) >= 0) /* file exists */
|
||||
if (_access(buffer, 0) >= 0) /* file exists */
|
||||
{
|
||||
printf("File %s already exists, overwrite? (Y)es, (N)o, (A)bort", buffer);
|
||||
do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue