- Silence annoying "Empty path passed" error.

- Set error correctly when an empty path is passed to DeleteFile.
This commit is contained in:
Ryan Cumming 2002-11-08 18:52:18 +00:00 committed by Alexandre Julliard
parent 1bc18f3da7
commit 768d98e7e9
1 changed files with 2 additions and 1 deletions

View File

@ -2397,7 +2397,8 @@ BOOL WINAPI DeleteFileW( LPCWSTR path )
if (!*path)
{
ERR("Empty path passed\n");
WARN("Empty path passed\n");
SetLastError( ERROR_FILE_NOT_FOUND );
return FALSE;
}
if (DOSFS_GetDevice( path ))