From 768d98e7e9fe09b55415d32d9a429e76f4d6bcee Mon Sep 17 00:00:00 2001 From: Ryan Cumming Date: Fri, 8 Nov 2002 18:52:18 +0000 Subject: [PATCH] - Silence annoying "Empty path passed" error. - Set error correctly when an empty path is passed to DeleteFile. --- files/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/file.c b/files/file.c index c04b33de173..b178db48155 100644 --- a/files/file.c +++ b/files/file.c @@ -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 ))