[Scummvm-cvs-logs] CVS: residual smush.cpp,1.50,1.51

Pawel Kolodziejski aquadran at users.sourceforge.net
Fri Dec 31 12:18:04 CET 2004


Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18084

Modified Files:
	smush.cpp 
Log Message:
disable usage separate file handle, i need more info.

Index: smush.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/smush.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- smush.cpp	31 Dec 2004 19:12:48 -0000	1.50
+++ smush.cpp	31 Dec 2004 20:17:43 -0000	1.51
@@ -276,9 +276,9 @@
 		warning("zlibFile %s not found", filename);
 		return false;
 	}
-	int filePos = ftell(_handle);
-	_handle = fdopen(fileno(_handle), "rb");
-	fseek(_handle, filePos, SEEK_SET);
+//	int filePos = ftell(_handle);
+//	_handle = fdopen(fileno(_handle), "rb");
+//	fseek(_handle, filePos, SEEK_SET);
 
 	// Read in the GZ header
 	fread(_inBuf, 2, sizeof(char), _handle);				// Header
@@ -316,8 +316,8 @@
 
 void zlibFile::close() {
 	if (_handle) {
-		fclose(_handle);
-		_handle = NULL;
+//		fclose(_handle);
+//		_handle = NULL;
 	}
 
 	if (_inBuf) {





More information about the Scummvm-git-logs mailing list