issue #2087: [EventDispatcher] Fixing crash on Win32.