mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
Fixed extracting common.MPQ under *nix
Signed-off-by: arrai <array.of.intellect@gmail.com>
This commit is contained in:
parent
0874856e34
commit
3dc4e40e34
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ int libmpq_archive_open(mpq_archive *mpq_a, unsigned char *mpq_filename) {
|
||||||
memset(mpq_a->header, 0, sizeof(mpq_header));
|
memset(mpq_a->header, 0, sizeof(mpq_header));
|
||||||
|
|
||||||
/* Check if file exists and is readable */
|
/* Check if file exists and is readable */
|
||||||
fd = _open((char *)mpq_filename, O_RDONLY | O_BINARY);
|
fd = _open((char *)mpq_filename, O_RDONLY | O_BINARY | O_LARGEFILE);
|
||||||
if (fd == LIBMPQ_EFILE) {
|
if (fd == LIBMPQ_EFILE) {
|
||||||
return LIBMPQ_EFILE;
|
return LIBMPQ_EFILE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue