diff options
author | unknown <E:\Ladik\Mail> | 2015-04-18 16:58:14 +0200 |
---|---|---|
committer | unknown <E:\Ladik\Mail> | 2015-04-18 16:58:14 +0200 |
commit | d47864c13d4d5015445343f652ef3d3b3b73cb25 (patch) | |
tree | 9f8ef9089f2e68a1ad2ed2ca27106e9ebaef1da0 /src/SFileGetFileInfo.cpp | |
parent | ef12717cf92d9efb5dd32b1d1e3780c05fd83ee3 (diff) |
+ Fixed use-after-free in SListFileFindFirstFile
+ Replaces SFileMpqIsReadOnly with SFileMpqFlags
+ New MPQ flag: MPQ_FLAG_WAR3_MAP
Diffstat (limited to 'src/SFileGetFileInfo.cpp')
-rw-r--r-- | src/SFileGetFileInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SFileGetFileInfo.cpp b/src/SFileGetFileInfo.cpp index 9cf8038..753d2fd 100644 --- a/src/SFileGetFileInfo.cpp +++ b/src/SFileGetFileInfo.cpp @@ -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; |