mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-20 22:57:20 +01:00
+ Fixed use-after-free in SListFileFindFirstFile
+ Replaces SFileMpqIsReadOnly with SFileMpqFlags + New MPQ flag: MPQ_FLAG_WAR3_MAP
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user