mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
fixed bug in unlink.c
svn path=/trunk/; revision=256
This commit is contained in:
parent
4ad5db5d9c
commit
2c7fb0c72e
1 changed files with 1 additions and 5 deletions
|
@ -10,14 +10,10 @@
|
|||
#include <windows.h>
|
||||
#include <io.h>
|
||||
|
||||
int unlink( const char *filename )
|
||||
{
|
||||
return _unlink(filename);
|
||||
}
|
||||
|
||||
int _unlink( const char *filename )
|
||||
{
|
||||
if ( !DeleteFile(filename) )
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue