mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 02:31:22 +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 <windows.h>
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
||||||
int unlink( const char *filename )
|
|
||||||
{
|
|
||||||
return _unlink(filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
int _unlink( const char *filename )
|
int _unlink( const char *filename )
|
||||||
{
|
{
|
||||||
if ( !DeleteFile(filename) )
|
if ( !DeleteFile(filename) )
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue