(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();
var arc = ArcFile.TryOpen (entry.Name);
if (null == arc)
{
if (FormatCatalog.Instance.LastError is OperationCanceledException)
throw FormatCatalog.Instance.LastError;
else
throw new UnknownFormatException();
}
try
{
Push (entry.Name, arc.CreateFileSystem());