Bug 467371 - VERIFY in nsToolKit::Startup should check GetLastError() for ERROR_CLASS_ALREADY_EXISTS. r=dougt

This commit is contained in:
Brad Lassey 2009-01-28 15:36:33 -08:00
parent 5e5752733e
commit 9f3f82e721

View File

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