mapping a zero size file should fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog:
* mapping a zero size file should fail
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
         {

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux