mapping a zero size file should fail
Mike McCormack
mike at codeweavers.com
Thu Jan 8 01:03:35 CST 2004
ChangeLog:
* mapping a zero size file should fail
-------------- next part --------------
Index: server/mapping.c
===================================================================
RCS file: /home/wine/wine/server/mapping.c,v
retrieving revision 1.44
diff -u -r1.44 mapping.c
--- server/mapping.c 8 Oct 2003 00:25:33 -0000 1.44
+++ server/mapping.c 8 Jan 2004 06:39:09 -0000
@@ -289,6 +289,11 @@
if (!size_high && !size_low)
{
if (!get_file_size( mapping->file, &size_high, &size_low )) goto error;
+ if( !size_high && !size_low )
+ {
+ set_error( STATUS_FILE_INVALID );
+ goto error;
+ }
}
else
{
More information about the wine-patches
mailing list