From a3fba332ce93a3453441b2b8e6f43c0793602bb5 Mon Sep 17 00:00:00 2001 From: Ladislav Date: Wed, 24 Jul 2013 23:28:59 +0200 Subject: + Lower Windows permissions are now needed for opening MPQ for read-only --- test/Test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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; } -- cgit v1.2.3