@@ -128,7 +128,7 @@ public override IAsyncOperation<IRandomAccessStream> OpenAsync(FileAccessMode ac
128128 if ( entry . FileName is not null )
129129 {
130130 var ms = new MemoryStream ( ) ;
131- await zipFile . ExtractFileAsync ( entry . FileName , ms ) ;
131+ await zipFile . ExtractFileAsync ( entry . Index , ms ) ;
132132 ms . Position = 0 ;
133133 return new NonSeekableRandomAccessStreamForRead ( ms , ( ulong ) entry . Size )
134134 {
@@ -178,7 +178,7 @@ public override IAsyncOperation<IRandomAccessStreamWithContentType> OpenReadAsyn
178178 }
179179
180180 var ms = new MemoryStream ( ) ;
181- await zipFile . ExtractFileAsync ( entry . FileName , ms ) ;
181+ await zipFile . ExtractFileAsync ( entry . Index , ms ) ;
182182 ms . Position = 0 ;
183183 var nsStream = new NonSeekableRandomAccessStreamForRead ( ms , ( ulong ) entry . Size )
184184 {
@@ -221,7 +221,7 @@ public override IAsyncOperation<IInputStream> OpenSequentialReadAsync()
221221 }
222222
223223 var ms = new MemoryStream ( ) ;
224- await zipFile . ExtractFileAsync ( entry . FileName , ms ) ;
224+ await zipFile . ExtractFileAsync ( entry . Index , ms ) ;
225225 ms . Position = 0 ;
226226 return new NonSeekableRandomAccessStreamForRead ( ms , ( ulong ) entry . Size )
227227 {
@@ -261,7 +261,7 @@ public override IAsyncOperation<BaseStorageFile> CopyAsync(IStorageFolder destin
261261 if ( destFolder is ICreateFileWithStream cwsf )
262262 {
263263 var ms = new MemoryStream ( ) ;
264- await zipFile . ExtractFileAsync ( entry . FileName , ms ) ;
264+ await zipFile . ExtractFileAsync ( entry . Index , ms ) ;
265265 ms . Position = 0 ;
266266 using var inStream = new NonSeekableRandomAccessStreamForRead ( ms , ( ulong ) entry . Size ) ;
267267 return await cwsf . CreateFileAsync ( inStream . AsStreamForRead ( ) , desiredNewName , option . Convert ( ) ) ;
@@ -270,7 +270,7 @@ public override IAsyncOperation<BaseStorageFile> CopyAsync(IStorageFolder destin
270270 {
271271 var destFile = await destFolder . CreateFileAsync ( desiredNewName , option . Convert ( ) ) ;
272272 using var outStream = await destFile . OpenStreamForWriteAsync ( ) ;
273- await zipFile . ExtractFileAsync ( entry . FileName , outStream ) ;
273+ await zipFile . ExtractFileAsync ( entry . Index , outStream ) ;
274274 return destFile ;
275275 }
276276 } ) ;
@@ -294,7 +294,7 @@ public override IAsyncAction CopyAndReplaceAsync(IStorageFile fileToReplace)
294294 using var hDestFile = fileToReplace . CreateSafeFileHandle ( FileAccess . ReadWrite ) ;
295295 using ( var outStream = new FileStream ( hDestFile , FileAccess . Write ) )
296296 {
297- await zipFile . ExtractFileAsync ( entry . FileName , outStream ) ;
297+ await zipFile . ExtractFileAsync ( entry . Index , outStream ) ;
298298 }
299299 } ) ;
300300 }
@@ -518,7 +518,7 @@ private StreamedFileDataRequestedHandler ZipDataStreamingHandler(string name)
518518 {
519519 using ( var outStream = request . AsStreamForWrite ( ) )
520520 {
521- await zipFile . ExtractFileAsync ( entry . FileName , outStream ) ;
521+ await zipFile . ExtractFileAsync ( entry . Index , outStream ) ;
522522 }
523523 request . Dispose ( ) ;
524524 }
0 commit comments