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:
Vadim Zeitlin
2020-04-19 17:07:04 +02:00
parent 893f3a6c00
commit 5ecc553afb

View File

@@ -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