Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/StormLibSharp/MpqArchive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private MpqArchive(string filePath, MpqArchiveVersion version, MpqFileStreamAttr

//if (!NativeMethods.SFileCreateArchive2(filePath, ref create, out _handle))
// throw new Win32Exception();
if (!NativeMethods.SFileCreateArchive(filePath, (uint)flags, int.MaxValue, out _handle))
if (!NativeMethods.SFileCreateArchive(filePath, (uint)flags, (uint)maxFileCount, out _handle))
throw new Win32Exception();
}

Expand Down