Skip to content

Commit

Permalink
Fixed issue 145: crash on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
taxilian committed Feb 17, 2011
1 parent 8cdcef6 commit f8a15d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/PluginCore/Win/WinMessageWindow.cpp
Expand Up @@ -33,13 +33,16 @@ FB::WinMessageWindow::WinMessageWindow() {
wc.hbrBackground = NULL;

if (!(clsAtom = ::RegisterClassEx(&wc))) {
err = ::GetLastError();
err = ::GetLastError();
if (err != ERROR_CLASS_ALREADY_EXISTS) {
throw std::runtime_error("Could not register window class");
}
}
}
// Step 2: Creating the Window
HWND messageWin = CreateWindowEx(
WS_OVERLAPPED,
(LPCWSTR)clsAtom,
wszClassName,
wszWinName,
0,
0, 0, 0, 0,
Expand Down

0 comments on commit f8a15d2

Please sign in to comment.