summaryrefslogtreecommitdiff
path: root/src/SFileGetFileInfo.cpp
diff options
context:
space:
mode:
authorAndrew Shadura <andrewsh@debian.org>2016-12-13 14:11:38 +0100
committerAndrew Shadura <andrewsh@debian.org>2016-12-13 14:11:38 +0100
commitac38577eacbb21536a02caf00891fee542d7dd30 (patch)
tree5089b5d7705ed250ba3772860b49bd901112ad1a /src/SFileGetFileInfo.cpp
parent15301cd2c4f008aeb5a5ff911f04089ab3aa102f (diff)
Imported Upstream version 9.21
Diffstat (limited to 'src/SFileGetFileInfo.cpp')
-rw-r--r--src/SFileGetFileInfo.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/SFileGetFileInfo.cpp b/src/SFileGetFileInfo.cpp
index 9874793..365dce5 100644
--- a/src/SFileGetFileInfo.cpp
+++ b/src/SFileGetFileInfo.cpp
@@ -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;