(FileSystemStack.ChDir): propagate OperationCanceledException.

This commit is contained in:
morkt 2015-09-16 23:54:35 +04:00
parent f4c1bc2ae4
commit ee14a418c0

View File

@ -477,7 +477,12 @@ namespace GameRes
Flush(); Flush();
var arc = ArcFile.TryOpen (entry.Name); var arc = ArcFile.TryOpen (entry.Name);
if (null == arc) if (null == arc)
throw new UnknownFormatException(); {
if (FormatCatalog.Instance.LastError is OperationCanceledException)
throw FormatCatalog.Instance.LastError;
else
throw new UnknownFormatException();
}
try try
{ {
Push (entry.Name, arc.CreateFileSystem()); Push (entry.Name, arc.CreateFileSystem());