WoWInterface - View Single Post - Extract "wow-update-12759.mpq"... meh!
View Single Post
08-21-10, 06:22 AM   #74
A Deviate Faerie Dragon
Borlox's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 13
Originally Posted by Ladik View Post
I'll change it so when an MPQ is open for read only, it can be open multiple times.
Edit: it should be possible - MPQs are open with FILE_SHARE_READ, and GENERIC_READ if MPQ_OPEN_READ_ONLY is specified in SFileOpenArchive.
Here is a minimal test case.
Executed in Cataclysm\Data it always gives me
Failed to add patch archive for exp3: 32
Error code 32 is ERROR_SHARING_VIOLATION "The process cannot access the file because it is being used by another process."

All MPQs are opened with MPQ_OPEN_READ_ONLY.