Browse Source

Is zlib thread-safe...?

Michał W. Urbańczyk 15 years ago
parent
commit
e717f2fd05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hch/CLodHandler.cpp

+ 1 - 1
hch/CLodHandler.cpp

@@ -110,9 +110,9 @@ unsigned char * CLodHandler::giveFile(std::string defName, int * length)
 
 		LOD.seekg(ourEntry->offset, std::ios::beg);
 		LOD.read((char*)outp, ourEntry->size);
-		mutex->unlock();
 		unsigned char * decomp = NULL;
 		infs2(outp, ourEntry->size, ourEntry->realSize, decomp);
+		mutex->unlock();
 		delete[] outp;
 		return decomp;
 	}