Check for NULL path argument in DeleteFile.

This commit is contained in:
Uwe Bonnes 2001-10-02 17:40:33 +00:00 committed by Alexandre Julliard
parent 04f90ca78a
commit ef3d022c62
1 changed files with 5 additions and 0 deletions

View File

@ -1934,6 +1934,11 @@ BOOL WINAPI DeleteFileA( LPCSTR path )
{
DOS_FULL_NAME full_name;
if (!path)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
TRACE("'%s'\n", path );
if (!*path)