@@ -31,15 +31,15 @@ public class InflateWrapper
3131 /// <param name="filename">Output filename, null to auto-generate</param>
3232 /// <param name="outputDirectory">Output directory to write to</param>
3333 /// <param name="expected">Expected DEFLATE stream information</param>
34- /// <param name="isPkzip ">Indicates if PKZIP containers are used</param>
34+ /// <param name="pkzip ">Indicates if PKZIP containers are used</param>
3535 /// <param name="includeDebug">True to include debug data, false otherwise</param>
3636 /// <returns>Extraction status representing the final state</returns>
3737 /// <remarks>Assumes that the current stream position is where the compressed data lives</remarks>
3838 public static ExtractionStatus ExtractFile ( Stream source ,
3939 string ? filename ,
4040 string outputDirectory ,
4141 DeflateInfo expected ,
42- bool isPkzip ,
42+ bool pkzip ,
4343 bool includeDebug )
4444 {
4545 // Debug output
@@ -50,12 +50,12 @@ public static ExtractionStatus ExtractFile(Stream source,
5050 ExtractionStatus status = ExtractStream ( source ,
5151 destination ,
5252 expected ,
53- isPkzip ,
53+ pkzip ,
5454 includeDebug ,
5555 out var foundFilename ) ;
5656
5757 // If the extracted data is invalid
58- if ( destination == null )
58+ if ( status != ExtractionStatus . GOOD || destination == null )
5959 return status ;
6060
6161 // Ensure directory separators are consistent
@@ -82,20 +82,20 @@ public static ExtractionStatus ExtractFile(Stream source,
8282 /// <param name="source">Stream representing the deflated data</param>
8383 /// <param name="destination">Stream where the inflated data will be written</param>
8484 /// <param name="expected">Expected DEFLATE stream information</param>
85- /// <param name="isPkzip ">Indicates if PKZIP containers are used</param>
85+ /// <param name="pkzip ">Indicates if PKZIP containers are used</param>
8686 /// <param name="includeDebug">True to include debug data, false otherwise</param>
8787 /// <param name="filename">Output filename if extracted from the data, null otherwise</param>
8888 /// <returns>Extraction status representing the final state</returns>
8989 /// <remarks>Assumes that the current stream position is where the compressed data lives</remarks>
9090 public static ExtractionStatus ExtractStream ( Stream source ,
9191 Stream destination ,
9292 DeflateInfo expected ,
93- bool isPkzip ,
93+ bool pkzip ,
9494 bool includeDebug ,
9595 out string ? filename )
9696 {
9797 // If PKZIP containers are used
98- if ( isPkzip )
98+ if ( pkzip )
9999 return ExtractStreamWithContainer ( source , destination , expected , includeDebug , out filename ) ;
100100
101101 // If post-data checksums are used
0 commit comments