@@ -128,7 +128,7 @@ public override IAsyncOperation<IRandomAccessStream> OpenAsync(FileAccessMode ac
128
128
if ( entry . FileName is not null )
129
129
{
130
130
var ms = new MemoryStream ( ) ;
131
- await zipFile . ExtractFileAsync ( entry . FileName , ms ) ;
131
+ await zipFile . ExtractFileAsync ( entry . Index , ms ) ;
132
132
ms . Position = 0 ;
133
133
return new NonSeekableRandomAccessStreamForRead ( ms , ( ulong ) entry . Size )
134
134
{
@@ -178,7 +178,7 @@ public override IAsyncOperation<IRandomAccessStreamWithContentType> OpenReadAsyn
178
178
}
179
179
180
180
var ms = new MemoryStream ( ) ;
181
- await zipFile . ExtractFileAsync ( entry . FileName , ms ) ;
181
+ await zipFile . ExtractFileAsync ( entry . Index , ms ) ;
182
182
ms . Position = 0 ;
183
183
var nsStream = new NonSeekableRandomAccessStreamForRead ( ms , ( ulong ) entry . Size )
184
184
{
@@ -221,7 +221,7 @@ public override IAsyncOperation<IInputStream> OpenSequentialReadAsync()
221
221
}
222
222
223
223
var ms = new MemoryStream ( ) ;
224
- await zipFile . ExtractFileAsync ( entry . FileName , ms ) ;
224
+ await zipFile . ExtractFileAsync ( entry . Index , ms ) ;
225
225
ms . Position = 0 ;
226
226
return new NonSeekableRandomAccessStreamForRead ( ms , ( ulong ) entry . Size )
227
227
{
@@ -261,7 +261,7 @@ public override IAsyncOperation<BaseStorageFile> CopyAsync(IStorageFolder destin
261
261
if ( destFolder is ICreateFileWithStream cwsf )
262
262
{
263
263
var ms = new MemoryStream ( ) ;
264
- await zipFile . ExtractFileAsync ( entry . FileName , ms ) ;
264
+ await zipFile . ExtractFileAsync ( entry . Index , ms ) ;
265
265
ms . Position = 0 ;
266
266
using var inStream = new NonSeekableRandomAccessStreamForRead ( ms , ( ulong ) entry . Size ) ;
267
267
return await cwsf . CreateFileAsync ( inStream . AsStreamForRead ( ) , desiredNewName , option . Convert ( ) ) ;
@@ -270,7 +270,7 @@ public override IAsyncOperation<BaseStorageFile> CopyAsync(IStorageFolder destin
270
270
{
271
271
var destFile = await destFolder . CreateFileAsync ( desiredNewName , option . Convert ( ) ) ;
272
272
using var outStream = await destFile . OpenStreamForWriteAsync ( ) ;
273
- await zipFile . ExtractFileAsync ( entry . FileName , outStream ) ;
273
+ await zipFile . ExtractFileAsync ( entry . Index , outStream ) ;
274
274
return destFile ;
275
275
}
276
276
} ) ;
@@ -294,7 +294,7 @@ public override IAsyncAction CopyAndReplaceAsync(IStorageFile fileToReplace)
294
294
using var hDestFile = fileToReplace . CreateSafeFileHandle ( FileAccess . ReadWrite ) ;
295
295
using ( var outStream = new FileStream ( hDestFile , FileAccess . Write ) )
296
296
{
297
- await zipFile . ExtractFileAsync ( entry . FileName , outStream ) ;
297
+ await zipFile . ExtractFileAsync ( entry . Index , outStream ) ;
298
298
}
299
299
} ) ;
300
300
}
@@ -518,7 +518,7 @@ private StreamedFileDataRequestedHandler ZipDataStreamingHandler(string name)
518
518
{
519
519
using ( var outStream = request . AsStreamForWrite ( ) )
520
520
{
521
- await zipFile . ExtractFileAsync ( entry . FileName , outStream ) ;
521
+ await zipFile . ExtractFileAsync ( entry . Index , outStream ) ;
522
522
}
523
523
request . Dispose ( ) ;
524
524
}
0 commit comments