From 9e7132b52debd3d592391ce89d3582027cb0e161 Mon Sep 17 00:00:00 2001 From: Michal Krol Date: Mon, 8 Nov 2010 17:23:32 +0100 Subject: os: Open file streams in binary mode. Otherwise we'll get garbled data on Windows. --- src/gallium/auxiliary/os/os_stream_stdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/os') diff --git a/src/gallium/auxiliary/os/os_stream_stdc.c b/src/gallium/auxiliary/os/os_stream_stdc.c index 37e7d063e2..afd3ff6dce 100644 --- a/src/gallium/auxiliary/os/os_stream_stdc.c +++ b/src/gallium/auxiliary/os/os_stream_stdc.c @@ -106,7 +106,7 @@ os_file_stream_create(const char *filename) stream->base.flush = &os_stdc_stream_flush; stream->base.vprintf = &os_stdc_stream_vprintf; - stream->file = fopen(filename, "w"); + stream->file = fopen(filename, "wb"); if(!stream->file) goto no_file; -- cgit v1.2.3