Check for Void path in Deletefile
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Thu Sep 27 09:11:31 CDT 2001
Tested against win95
Changelog:
files/file.c: Deletefile
Expect NULL as path argument
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/files/file.c
===================================================================
RCS file: /home/wine/wine/files/file.c,v
retrieving revision 1.109
diff -u -w -r1.109 file.c
--- wine/files/file.c 25 Sep 2001 22:37:32 -0000 1.109
+++ wine/files/file.c 27 Sep 2001 14:09:25 -0000
@@ -1934,6 +1934,11 @@
{
DOS_FULL_NAME full_name;
+ if (!path)
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
TRACE("'%s'\n", path );
if (!*path)
More information about the wine-patches
mailing list