Skip to content
  • Ignacio Casal Quinteiro's avatar
    win32: make sure bytes_read/written is set to 0 on error · 50d704ab
    Ignacio Casal Quinteiro authored
    If we fail to PeekMessage or PostMessage we should make sure
    that the output parameter bytes_read/written is set 0 instead
    of being left uninitialized. This fixes an assertion in the io
    channel call where the following invariant is checked:
    (status == G_IO_STATUS_NORMAL) || (read_size == 0)
    50d704ab