[PATCHLET] DeleteFile With Empty Paths

Ryan Cumming ryan at completely.kicks-ass.org
Thu Nov 7 04:18:20 CST 2002


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emptypath.diff
Type: text/x-diff
Size: 505 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021107/b1e4fd7c/emptypath.bin


More information about the wine-patches mailing list