Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed issue 145: crash on IE

  • Loading branch information...
commit f8a15d23c062ae74e9b2b4e76e8e41375102736f 1 parent 8cdcef6
@taxilian taxilian authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/PluginCore/Win/WinMessageWindow.cpp
View
7 src/PluginCore/Win/WinMessageWindow.cpp
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.