Bug 734306: Fix bad conversion from nsresult to NPError. r=bas
This commit is contained in:
@@ -1488,7 +1488,7 @@ nsNPAPIPluginInstance::InitAsyncSurface(NPSize *size, NPImageFormat format,
|
||||
if (mOwner)
|
||||
return mOwner->InitAsyncSurface(size, format, initData, surface);
|
||||
|
||||
return NS_ERROR_FAILURE;
|
||||
return NPERR_GENERIC_ERROR;
|
||||
}
|
||||
|
||||
NPError
|
||||
@@ -1497,7 +1497,7 @@ nsNPAPIPluginInstance::FinalizeAsyncSurface(NPAsyncSurface *surface)
|
||||
if (mOwner)
|
||||
return mOwner->FinalizeAsyncSurface(surface);
|
||||
|
||||
return NS_ERROR_FAILURE;
|
||||
return NPERR_GENERIC_ERROR;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user