mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 504170 nsAStreamCopier::Process can use sourceCondition, sinkCondition uninitialized if someone cancels the copy early
r=dougt
This commit is contained in:
parent
a5db807132
commit
18ff2518cc
@ -388,12 +388,17 @@ public:
|
||||
|
||||
// notify state complete...
|
||||
if (mCallback) {
|
||||
nsresult status = sourceCondition;
|
||||
if (NS_SUCCEEDED(status))
|
||||
status = sinkCondition;
|
||||
if (status == NS_BASE_STREAM_CLOSED)
|
||||
status = NS_OK;
|
||||
mCallback(mClosure, canceled ? cancelStatus : status);
|
||||
nsresult status;
|
||||
if (!canceled) {
|
||||
status = sourceCondition;
|
||||
if (NS_SUCCEEDED(status))
|
||||
status = sinkCondition;
|
||||
if (status == NS_BASE_STREAM_CLOSED)
|
||||
status = NS_OK;
|
||||
} else {
|
||||
status = cancelStatus;
|
||||
}
|
||||
mCallback(mClosure, status);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user