mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 779442 - Fix a few more incorrect uses of nsresult; r=ehsan
This commit is contained in:
parent
7f3a5daa43
commit
56ba7bec2e
@ -137,7 +137,7 @@ NS_IMETHODIMP nsPrintProgress::RegisterListener(nsIWebProgressListener * listene
|
||||
listener->OnStateChange(nullptr, nullptr, nsIWebProgressListener::STATE_STOP, NS_OK);
|
||||
else
|
||||
{
|
||||
listener->OnStatusChange(nullptr, nullptr, 0, m_pendingStatus.get());
|
||||
listener->OnStatusChange(nullptr, nullptr, NS_OK, m_pendingStatus.get());
|
||||
if (m_pendingStateFlags != -1)
|
||||
listener->OnStateChange(nullptr, nullptr, m_pendingStateFlags, m_pendingStateValue);
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ private:
|
||||
// can't create a cycle.
|
||||
mozilla::image::Image* mImage;
|
||||
PRUint32 mState;
|
||||
nsresult mImageStatus;
|
||||
PRUint32 mImageStatus;
|
||||
bool mHadLastPart;
|
||||
};
|
||||
|
||||
|
@ -317,7 +317,7 @@ void
|
||||
nsBrowserStatusFilter::MaybeSendStatus()
|
||||
{
|
||||
if (mStatusIsDirty) {
|
||||
mListener->OnStatusChange(nullptr, nullptr, 0, mStatusMsg.get());
|
||||
mListener->OnStatusChange(nullptr, nullptr, NS_OK, mStatusMsg.get());
|
||||
mCurrentStatusMsg = mStatusMsg;
|
||||
mStatusIsDirty = false;
|
||||
}
|
||||
|
@ -3591,7 +3591,7 @@ nsresult nsUrlClassifierStore::ReadPrefixes(FallibleTArray<PRUint32>& array,
|
||||
|
||||
const PRUint8 *blobdomain = mAllPrefixGetStatement->AsSharedBlob(0, &size);
|
||||
if (!blobdomain || (size != DOMAIN_LENGTH))
|
||||
return false;
|
||||
return NS_OK;
|
||||
|
||||
domainval = *(reinterpret_cast<const PRUint32*>(blobdomain));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user