[Scummvm-cvs-logs] SF.net SVN: scummvm:[40288] tools/trunk/extract_gob_stk.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Sun May 3 23:39:22 CEST 2009
Revision: 40288
http://scummvm.svn.sourceforge.net/scummvm/?rev=40288&view=rev
Author: mthreepwood
Date: 2009-05-03 21:39:21 +0000 (Sun, 03 May 2009)
Log Message:
-----------
Open files in binary mode. Fixes usage on Windows.
Modified Paths:
--------------
tools/trunk/extract_gob_stk.cpp
Modified: tools/trunk/extract_gob_stk.cpp
===================================================================
--- tools/trunk/extract_gob_stk.cpp 2009-05-03 21:11:09 UTC (rev 40287)
+++ tools/trunk/extract_gob_stk.cpp 2009-05-03 21:39:21 UTC (rev 40288)
@@ -50,7 +50,7 @@
FILE *stk;
- if (!(stk = fopen(argv[1], "r")))
+ if (!(stk = fopen(argv[1], "rb")))
error("Couldn't open file \"%s\"", argv[1]);
Chunk *chunks = readChunkList(stk);
@@ -100,7 +100,7 @@
printf("Extracting \"%s\"\n", curChunk->name);
FILE *chunkFile;
- if (!(chunkFile = fopen(curChunk->name, "w")))
+ if (!(chunkFile = fopen(curChunk->name, "wb")))
extractError(stk, 0, chunks, "Couldn't write file");
if (fseek(stk, curChunk->offset, SEEK_SET) == -1)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list