Commit 768d98e7 authored by Ryan Cumming's avatar Ryan Cumming Committed by Alexandre Julliard

- Silence annoying "Empty path passed" error.

- Set error correctly when an empty path is passed to DeleteFile.
parent 1bc18f3d
......@@ -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 ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment