mirror of
https://github.com/fadden/nulib2.git
synced 2025-01-14 16:33:31 +00:00
Added "abort" to progress states, so user cancellations can be reported
properly.
This commit is contained in:
parent
6f418b9d5c
commit
dbf47b585f
@ -1530,7 +1530,8 @@ Nu_ExpandLZW(NuArchive* pArchive, const NuRecord* pRecord,
|
||||
/* write the data, possibly doing an EOL conversion */
|
||||
err = Nu_FunnelWrite(pArchive, pFunnel, writeBuf, writeLen);
|
||||
if (err != kNuErrNone) {
|
||||
Nu_ReportError(NU_BLOB, err, "unable to write output");
|
||||
if (err != kNuErrAborted)
|
||||
Nu_ReportError(NU_BLOB, err, "unable to write output");
|
||||
goto bail;
|
||||
}
|
||||
|
||||
|
@ -748,6 +748,8 @@ bail:
|
||||
/* send a final progress message, indicating failure */
|
||||
if (err == kNuErrSkipped)
|
||||
pProgressData->state = kNuProgressSkipped;
|
||||
else if (err == kNuErrAborted)
|
||||
pProgressData->state = kNuProgressAborted;
|
||||
else
|
||||
pProgressData->state = kNuProgressFailed;
|
||||
(void) Nu_SendInitialProgress(pArchive, pProgressData);
|
||||
|
Loading…
x
Reference in New Issue
Block a user