Check for NULL path argument in DeleteFile.
This commit is contained in:
parent
04f90ca78a
commit
ef3d022c62
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue