Revision 205ef796 block/raw-win32.c

b/block/raw-win32.c
150 150
static void raw_flush(BlockDriverState *bs)
151 151
{
152 152
    BDRVRawState *s = bs->opaque;
153
    FlushFileBuffers(s->hfile);
153
    int ret;
154

  
155
    ret = FlushFileBuffers(s->hfile);
156
    if (ret != 0) {
157
        return -EIO;
158
    }
159

  
160
    return 0;
154 161
}
155 162

  
156 163
static void raw_close(BlockDriverState *bs)

Also available in: Unified diff