Hi, KaZaA Lite 2.0 calls DeleteFile with an empty path at shutdown, which triggers ERR("Empty path passed\n"). It seems a bit silly to call that an error, so this patch changes the message to a warning. It also does a SetLastError(ERROR_FILE_NOT_FOUND) in that case, which is consistant with Windows XP. -Ryan ChangeLog: -Silence annoying "Empty path passed" error -Set error correctly when an empty path is passed to DeleteFile
Index: files/file.c =================================================================== RCS file: /home/wine/wine/files/file.c,v retrieving revision 1.167 diff -u -r1.167 file.c --- files/file.c 25 Oct 2002 03:32:11 -0000 1.167 +++ files/file.c 7 Nov 2002 10:12:01 -0000 @@ -2397,7 +2397,8 @@ if (!*path) { - ERR("Empty path passed\n"); + WARN("Empty path passed\n"); + SetLastError( ERROR_FILE_NOT_FOUND ); return FALSE; } if (DOSFS_GetDevice( path ))