glib/giowin32.c (g_io_win32_dispatch): Check buffer condition here, too.
authorTor Lillqvist <tml@iki.fi>
Fri, 15 Mar 2002 23:34:53 +0000 (23:34 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Fri, 15 Mar 2002 23:34:53 +0000 (23:34 +0000)
2002-03-16  Tor Lillqvist  <tml@iki.fi>

glib/giowin32.c (g_io_win32_dispatch): Check buffer condition
here, too.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/giowin32.c

index 268fa9f..3386030 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,12 @@
 2002-03-16  Tor Lillqvist  <tml@iki.fi>
 
        * glib/giowin32.c: Some debugging output formatting changes. The
-       following two changes fixes a problem with buffered GIOChannels,
-       noticed with the help of Owen's test program, thanks!
+       following changes fix a problem with buffered GIOChannels, noticed
+       with the help of Owen's test program, thanks! (#59969)
        (g_io_win32_prepare): Return value that takes the buffer condition
        into account, like g_io_unix_prepare() does.
        (g_io_win32_check): Ditto, like g_io_unix_check().
+       (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
 
 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
 
index 268fa9f..3386030 100644 (file)
@@ -1,11 +1,12 @@
 2002-03-16  Tor Lillqvist  <tml@iki.fi>
 
        * glib/giowin32.c: Some debugging output formatting changes. The
-       following two changes fixes a problem with buffered GIOChannels,
-       noticed with the help of Owen's test program, thanks!
+       following changes fix a problem with buffered GIOChannels, noticed
+       with the help of Owen's test program, thanks! (#59969)
        (g_io_win32_prepare): Return value that takes the buffer condition
        into account, like g_io_unix_prepare() does.
        (g_io_win32_check): Ditto, like g_io_unix_check().
+       (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
 
 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
 
index 268fa9f..3386030 100644 (file)
@@ -1,11 +1,12 @@
 2002-03-16  Tor Lillqvist  <tml@iki.fi>
 
        * glib/giowin32.c: Some debugging output formatting changes. The
-       following two changes fixes a problem with buffered GIOChannels,
-       noticed with the help of Owen's test program, thanks!
+       following changes fix a problem with buffered GIOChannels, noticed
+       with the help of Owen's test program, thanks! (#59969)
        (g_io_win32_prepare): Return value that takes the buffer condition
        into account, like g_io_unix_prepare() does.
        (g_io_win32_check): Ditto, like g_io_unix_check().
+       (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
 
 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
 
index 268fa9f..3386030 100644 (file)
@@ -1,11 +1,12 @@
 2002-03-16  Tor Lillqvist  <tml@iki.fi>
 
        * glib/giowin32.c: Some debugging output formatting changes. The
-       following two changes fixes a problem with buffered GIOChannels,
-       noticed with the help of Owen's test program, thanks!
+       following changes fix a problem with buffered GIOChannels, noticed
+       with the help of Owen's test program, thanks! (#59969)
        (g_io_win32_prepare): Return value that takes the buffer condition
        into account, like g_io_unix_prepare() does.
        (g_io_win32_check): Ditto, like g_io_unix_check().
+       (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
 
 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
 
index 268fa9f..3386030 100644 (file)
@@ -1,11 +1,12 @@
 2002-03-16  Tor Lillqvist  <tml@iki.fi>
 
        * glib/giowin32.c: Some debugging output formatting changes. The
-       following two changes fixes a problem with buffered GIOChannels,
-       noticed with the help of Owen's test program, thanks!
+       following changes fix a problem with buffered GIOChannels, noticed
+       with the help of Owen's test program, thanks! (#59969)
        (g_io_win32_prepare): Return value that takes the buffer condition
        into account, like g_io_unix_prepare() does.
        (g_io_win32_check): Ditto, like g_io_unix_check().
+       (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
 
 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
 
index 268fa9f..3386030 100644 (file)
@@ -1,11 +1,12 @@
 2002-03-16  Tor Lillqvist  <tml@iki.fi>
 
        * glib/giowin32.c: Some debugging output formatting changes. The
-       following two changes fixes a problem with buffered GIOChannels,
-       noticed with the help of Owen's test program, thanks!
+       following changes fix a problem with buffered GIOChannels, noticed
+       with the help of Owen's test program, thanks! (#59969)
        (g_io_win32_prepare): Return value that takes the buffer condition
        into account, like g_io_unix_prepare() does.
        (g_io_win32_check): Ditto, like g_io_unix_check().
+       (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
 
 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
 
index 268fa9f..3386030 100644 (file)
@@ -1,11 +1,12 @@
 2002-03-16  Tor Lillqvist  <tml@iki.fi>
 
        * glib/giowin32.c: Some debugging output formatting changes. The
-       following two changes fixes a problem with buffered GIOChannels,
-       noticed with the help of Owen's test program, thanks!
+       following changes fix a problem with buffered GIOChannels, noticed
+       with the help of Owen's test program, thanks! (#59969)
        (g_io_win32_prepare): Return value that takes the buffer condition
        into account, like g_io_unix_prepare() does.
        (g_io_win32_check): Ditto, like g_io_unix_check().
+       (g_io_win32_dispatch): Ditto, like g_io_unix_dispatch().
 
 Thu Mar 14 17:37:45 2002  Owen Taylor  <otaylor@redhat.com>
 
index 513ace9..896e8bc 100644 (file)
@@ -619,6 +619,7 @@ g_io_win32_dispatch (GSource     *source,
 {
   GIOFunc func = (GIOFunc)callback;
   GIOWin32Watch *watch = (GIOWin32Watch *)source;
+  GIOCondition buffer_condition = g_io_channel_get_buffer_condition (watch->channel);
   
   if (!func)
     {
@@ -628,7 +629,7 @@ g_io_win32_dispatch (GSource     *source,
     }
   
   return (*func) (watch->channel,
-                 watch->pollfd.revents & watch->condition,
+                 (watch->pollfd.revents | buffer_condition) & watch->condition,
                  user_data);
 }