mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-20 14:47:22 +01:00
+ Updates
This commit is contained in:
@@ -773,6 +773,17 @@ bool WINAPI SFileGetFileInfo(
|
||||
}
|
||||
break;
|
||||
|
||||
case SFileInfoCRC32:
|
||||
hf = IsValidFileHandle(hMpqOrFile);
|
||||
if(hf != NULL && hf->pFileEntry != NULL)
|
||||
{
|
||||
dwInt32Value = hf->pFileEntry->dwCrc32;
|
||||
pvSrcFileInfo = &dwInt32Value;
|
||||
cbSrcFileInfo = sizeof(DWORD);
|
||||
nInfoType = SFILE_INFO_TYPE_DIRECT_POINTER;
|
||||
}
|
||||
break;
|
||||
|
||||
default: // Invalid info class
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user