소스 검색

Is zlib thread-safe...?

Michał W. Urbańczyk 15 년 전
부모
커밋
e717f2fd05
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 	}