Commits

Billy O'Neal committed c53c7d5

Increased buffer size for hashing to 1MB.

Comments (0)

Files changed (1)

pevLib/fileData.h

 	hashType hash;
 	DWORD bytesRead = 0;
 	std::vector<unsigned char> buffer;
-	buffer.resize(hash.OptimalBlockSize());
-	DWORD bytesToAttempt = hash.OptimalBlockSize();
+	DWORD bytesToAttempt = 1024*1024*1024; //1MB
+	buffer.resize(bytesToAttempt);
 	while (ReadFile(file,&buffer[0],bytesToAttempt,&bytesRead,NULL))
 	{
 		if (!bytesRead)