Author: allison
Date: Mon Dec  8 07:51:51 2008
New Revision: 33656

Modified:
   branches/pdd22io_part2/src/io/win32.c

Log:
[pdd22io] Actually set filehandle flags when opening an already existing
filehandle object.


Modified: branches/pdd22io_part2/src/io/win32.c
==============================================================================
--- branches/pdd22io_part2/src/io/win32.c       (original)
+++ branches/pdd22io_part2/src/io/win32.c       Mon Dec  8 07:51:51 2008
@@ -224,8 +224,10 @@
         PMC *io;
         if (PMC_IS_NULL(filehandle))
             io = Parrot_io_new_pmc(interp, flags);
-        else
+        else {
             io = filehandle;
+            Parrot_io_set_flags(interp, io, flags);
+        }
 
         Parrot_io_set_os_handle(interp, io, fd);
         return io;

Reply via email to