Add wxToastNotifMsgModule dependency on wxOleInitModule
This ensures that OLE is still initialized when this module cleanup occurs, as it must be when IToastNotificationManagerStatics COM pointer is destroyed. Closes #18730.
This commit is contained in:
@@ -463,6 +463,9 @@ class wxToastNotifMsgModule : public wxModule
|
||||
public:
|
||||
wxToastNotifMsgModule()
|
||||
{
|
||||
// Using RT API requires OLE and, importantly, we must ensure our
|
||||
// OnExit() runs before it is uninitialized.
|
||||
AddDependency("wxOleInitModule");
|
||||
}
|
||||
|
||||
virtual bool OnInit() wxOVERRIDE
|
||||
|
Reference in New Issue
Block a user