Added append mode for ADDINZIP when using zip compatibility. #408

This commit is contained in:
Nathan Moinvaziri 2019-08-15 17:09:10 -07:00
parent 88cb25164c
commit b7b90c3d19

View File

@ -48,7 +48,7 @@ static int32_t zipConvertAppendToStreamMode(int append)
mode |= MZ_OPEN_MODE_CREATE | MZ_OPEN_MODE_APPEND;
break;
case APPEND_STATUS_ADDINZIP:
mode |= MZ_OPEN_MODE_READ;
mode |= MZ_OPEN_MODE_READ | MZ_OPEN_MODE_APPEND;
break;
}
return mode;