Skip to content

Commit

Permalink
Removed unnecessary accelerator processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancorvussolis committed Mar 2, 2024
1 parent f5972f2 commit b224bd6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions imcrvmgr/imcrvmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WndProc;
wc.hInstance = hInst;
wc.hCursor = LoadCursor(nullptr, IDC_ARROW);
wc.hCursor = LoadCursorW(nullptr, IDC_ARROW);
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wc.lpszClassName = DictionaryManagerClass;
RegisterClassExW(&wc);
Expand Down Expand Up @@ -77,17 +77,11 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance
#endif
UpdateWindow(hWnd);

#pragma warning(push)
#pragma warning(disable:6387)
while (GetMessageW(&msg, nullptr, 0, 0))
{
if (!TranslateAcceleratorW(msg.hwnd, nullptr, &msg))
{
TranslateMessage(&msg);
DispatchMessageW(&msg);
}
TranslateMessage(&msg);
DispatchMessageW(&msg);
}
#pragma warning(pop)

ReleaseMutex(hMutex);
CloseHandle(hMutex);
Expand Down

0 comments on commit b224bd6

Please sign in to comment.