- Silence annoying "Empty path passed" error.
- Set error correctly when an empty path is passed to DeleteFile.
This commit is contained in:
parent
1bc18f3da7
commit
768d98e7e9
|
@ -2397,7 +2397,8 @@ BOOL WINAPI DeleteFileW( LPCWSTR path )
|
||||||
|
|
||||||
if (!*path)
|
if (!*path)
|
||||||
{
|
{
|
||||||
ERR("Empty path passed\n");
|
WARN("Empty path passed\n");
|
||||||
|
SetLastError( ERROR_FILE_NOT_FOUND );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (DOSFS_GetDevice( path ))
|
if (DOSFS_GetDevice( path ))
|
||||||
|
|
Loading…
Reference in New Issue