+ Fixed use-after-free in SListFileFindFirstFile

+ Replaces SFileMpqIsReadOnly with SFileMpqFlags
+ New MPQ flag: MPQ_FLAG_WAR3_MAP
This commit is contained in:
unknown
2015-04-18 16:58:14 +02:00
parent ef12717cf9
commit d47864c13d
8 changed files with 127 additions and 82 deletions

View File

@@ -603,11 +603,11 @@ bool WINAPI SFileGetFileInfo(
}
break;
case SFileMpqIsReadOnly:
case SFileMpqFlags:
ha = IsValidMpqHandle(hMpqOrFile);
if(ha != NULL)
{
dwInt32Value = (ha->dwFlags & MPQ_FLAG_READ_ONLY) ? 1 : 0;
dwInt32Value = ha->dwFlags;
pvSrcFileInfo = &dwInt32Value;
cbSrcFileInfo = sizeof(DWORD);
nInfoType = SFILE_INFO_TYPE_DIRECT_POINTER;