X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?p=SFmpqapi.git;a=blobdiff_plain;f=SFmpqapi.cpp;fp=SFmpqapi.cpp;h=bd4164d4f5ac62eb251ba7e422e9cee618e4d426;hp=a0d5a13991c63c51249f1cdce8d5c5afd5eba114;hb=e0b276afa1dc42629b6eaad3ed578c29371f065e;hpb=7214af3eb69acdaef221c1846157ed07438bd0c1 diff --git a/SFmpqapi.cpp b/SFmpqapi.cpp index a0d5a13..bd4164d 100644 --- a/SFmpqapi.cpp +++ b/SFmpqapi.cpp @@ -1073,7 +1073,7 @@ DWORD SFMPQAPI WINAPI SFileGetFileInfo(MPQHANDLE hFile, DWORD dwInfoType) case SFILE_INFO_PRIORITY: return mpqOpenArc->dwPriority; case SFILE_INFO_HASH_INDEX: - return ((INT_PTR)mpqOpenFile->lpHashEntry-(INT_PTR)mpqOpenArc->lpHashTable)/sizeof(HASHTABLEENTRY); + return ((UIntPtr)mpqOpenFile->lpHashEntry-(UIntPtr)mpqOpenArc->lpHashTable)/sizeof(HASHTABLEENTRY); case SFILE_INFO_BLOCK_INDEX: return mpqOpenFile->lpHashEntry->dwBlockTableIndex; default: