mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1184068: Ensure that mShutdown is not incorrectly set from true to false if plugin crashes during CallNP_Shutdown; r=jimm
This commit is contained in:
parent
0bc1227deb
commit
8bc79d9743
@ -2412,7 +2412,10 @@ PluginModuleParent::DoShutdown(NPError* error)
|
||||
// CallNP_Shutdown() message
|
||||
Close();
|
||||
|
||||
mShutdown = ok;
|
||||
// mShutdown should either be initialized to false, or be transitiong from
|
||||
// false to true. It is never ok to go from true to false. Using OR for
|
||||
// the following assignment to ensure this.
|
||||
mShutdown |= ok;
|
||||
if (!ok) {
|
||||
*error = NPERR_GENERIC_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user