summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/popup_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Popup/src/popup_thread.cpp')
-rw-r--r--plugins/Popup/src/popup_thread.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/plugins/Popup/src/popup_thread.cpp b/plugins/Popup/src/popup_thread.cpp
index 4a3d6a6f47..183014a76f 100644
--- a/plugins/Popup/src/popup_thread.cpp
+++ b/plugins/Popup/src/popup_thread.cpp
@@ -215,7 +215,6 @@ static unsigned __stdcall PopupThread(void *)
Thread_SetName("Popup: PopupThread");
// Create manager window
- DWORD err;
WNDCLASSEX wcl;
wcl.cbSize = sizeof(wcl);
wcl.lpfnWndProc = PopupThreadManagerWndProc;
@@ -230,12 +229,6 @@ static unsigned __stdcall PopupThread(void *)
wcl.lpszClassName = L"PopupThreadManagerWnd";
wcl.hIconSm = Skin_LoadIcon(SKINICON_OTHER_POPUP);
g_wndClass.cPopupThreadManagerWnd = RegisterClassExW(&wcl);
- err = GetLastError();
- if (!g_wndClass.cPopupThreadManagerWnd) {
- wchar_t msg[1024];
- mir_snwprintf(msg, TranslateT("Failed to register %s class."), wcl.lpszClassName);
- MSGERROR(msg);
- }
gHwndManager = CreateWindow(L"PopupThreadManagerWnd", nullptr, 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, HWND_DESKTOP, nullptr, g_plugin.getInst(), nullptr);
SetWindowPos(gHwndManager, nullptr, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_DEFERERASE | SWP_NOSENDCHANGING | SWP_HIDEWINDOW);