From b7051be2cb7bbc47625fe3472d0a5b9c93c85452 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 14 May 2015 16:11:21 +0400 Subject: [PATCH] (ExtractImage): use ArchiveFormat.CreateFile static method. --- ImagePreview.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImagePreview.cs b/ImagePreview.cs index 7b9bb8d5..254856bc 100644 --- a/ImagePreview.cs +++ b/ImagePreview.cs @@ -332,7 +332,7 @@ namespace GARbro.GUI string target_ext = target_format.Extensions.First(); string outname = Path.ChangeExtension (entry.Name, target_ext); Trace.WriteLine (string.Format ("{0} => {1}", entry.Name, outname), "ExtractImage"); - using (var outfile = arc.CreateFile (new Entry { Name = outname })) + using (var outfile = ArchiveFormat.CreateFile (outname)) { target_format.Write (outfile, image); }