diff --git a/widget/src/windows/nsToolkit.cpp b/widget/src/windows/nsToolkit.cpp index a413611eebf..a2363791c1e 100644 --- a/widget/src/windows/nsToolkit.cpp +++ b/widget/src/windows/nsToolkit.cpp @@ -261,7 +261,8 @@ nsToolkit::Startup(HMODULE hModule) wc.hbrBackground = NULL; wc.lpszMenuName = NULL; wc.lpszClassName = L"nsToolkitClass"; - VERIFY(::RegisterClassW(&wc)); + VERIFY(::RegisterClassW(&wc) || + GetLastError() == ERROR_CLASS_ALREADY_EXISTS); // Vista API. Mozilla is DPI Aware. typedef BOOL (*SetProcessDPIAwareFunc)(VOID);