aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLadislav <Zezula>2013-07-24 23:28:59 +0200
committerLadislav <Zezula>2013-07-24 23:28:59 +0200
commita3fba332ce93a3453441b2b8e6f43c0793602bb5 (patch)
tree4084297a682160e3f22501199c7d4a86a2bc10a8 /test
parent43033709ea78369d0fe86d1a014e0743ce8bd33b (diff)
+ Lower Windows permissions are now needed for opening MPQ for read-only
Diffstat (limited to 'test')
-rw-r--r--test/Test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Test.cpp b/test/Test.cpp
index 20b225f..c3960db 100644
--- a/test/Test.cpp
+++ b/test/Test.cpp
@@ -1148,7 +1148,7 @@ static int TestArchiveOpenAndClose(const TCHAR * szMpqName)
if(nError == ERROR_SUCCESS)
{
_tprintf(_T("Opening archive %s ...\n"), szMpqName);
- if(!SFileOpenArchive(szMpqName, 0, STREAM_PROVIDER_PARTIAL | BASE_PROVIDER_FILE, &hMpq))
+ if(!SFileOpenArchive(szMpqName, 0, STREAM_FLAG_READ_ONLY | BASE_PROVIDER_MAP, &hMpq))
nError = GetLastError();
ha = (TMPQArchive *)hMpq;
}