diff options
author | George Hazan <ghazan@miranda.im> | 2020-04-13 13:01:37 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-04-13 13:01:37 +0300 |
commit | 833592d193af4a524399bd46a24711b8f5e23ae8 (patch) | |
tree | 9c3aa6a2fbf49953198172fe12a814d5bd00d698 /libs/mTextControl/src/textcontrol.cpp | |
parent | cfca11de2e3a5e4cad5fbfe1e0fb199fef961448 (diff) |
fixes #2299 (NewStory: падение после попытки вгрузить плагин "на лету" и посмотреть историю)
Diffstat (limited to 'libs/mTextControl/src/textcontrol.cpp')
-rw-r--r-- | libs/mTextControl/src/textcontrol.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/mTextControl/src/textcontrol.cpp b/libs/mTextControl/src/textcontrol.cpp index fe4c70ea12..a7069ae88c 100644 --- a/libs/mTextControl/src/textcontrol.cpp +++ b/libs/mTextControl/src/textcontrol.cpp @@ -40,7 +40,12 @@ void MTextControl_RegisterClass() wcl.hCursor = LoadCursor(nullptr, IDC_ARROW); wcl.hbrBackground = (HBRUSH)GetStockObject(LTGRAY_BRUSH); wcl.lpszClassName = L"MTextControl"; - RegisterClassEx(&wcl); + RegisterClassExW(&wcl); +} + +void MTextControl_UnregisterClass() +{ + UnregisterClassW(L"MTextControl", g_hInst); } LRESULT CALLBACK MTextControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |