mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 827217 - Fix null-pointer crash with webgl.can-lose-context-in-foreground=false.
This commit is contained in:
parent
4447f97d84
commit
f7202ace62
@ -430,6 +430,12 @@ InitProcessPriorityManager()
|
||||
bool
|
||||
CurrentProcessIsForeground()
|
||||
{
|
||||
// The process priority manager is the only thing which changes our priority,
|
||||
// so if the manager does not exist, then we must be in the foreground.
|
||||
if (!sManager) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return sManager->GetPriority() >= PROCESS_PRIORITY_FOREGROUND;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user