Bug 1011685 - Call ipc InitUIThread from MetroAppShell Init. Follow up for bug 1009590. r=me

This commit is contained in:
Jim Mathies 2014-07-17 13:17:14 -05:00
parent 1a0f44f0e2
commit 62bd3e31c1

View File

@ -8,6 +8,7 @@
#include "mozilla/AutoRestore.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/widget/AudioSession.h"
#include "mozilla/ipc/WindowsMessageLoop.h"
#include "nsIObserverService.h"
#include "nsIAppStartup.h"
@ -73,6 +74,8 @@ MetroAppShell::Init()
WNDCLASSW wc;
HINSTANCE module = GetModuleHandle(nullptr);
mozilla::ipc::windows::InitUIThread();
const char16_t *const kWindowClass = L"nsAppShell:EventWindowClass";
if (!GetClassInfoW(module, kWindowClass, &wc)) {
wc.style = 0;