Skip to content

Commit

Permalink
Fix #10. Исправил поведение контекстного меню и утечку ресурсов при е…
Browse files Browse the repository at this point in the history
…го показе.
  • Loading branch information
orefkov committed Sep 8, 2021
1 parent 23ee46d commit 59df336
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/starter/starter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ void showContextMenu(POINT pt) {
HMENU menu = LoadMenu(hMyInst, MAKEINTRESOURCE(IDC_STARTER));
HMENU hPopup = GetSubMenu(menu, 0);
ModifyMenu(hPopup, ID_TOGGLE_INJECT, MF_BYCOMMAND | MF_STRING, ID_TOGGLE_INJECT, isInjected ? L"Приостановить" : L"Возобновить");
SetForegroundWindow(hMainWnd);
TrackPopupMenuEx(hPopup, 0, pt.x, pt.y, hMainWnd, NULL);
DestroyMenu(menu);
}

bool showNotify(ssw title, ssw msg) {
Expand Down

0 comments on commit 59df336

Please sign in to comment.