Sergey Lyubka пре 13 година
родитељ
комит
0c5c3b18ec
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      main.c

+ 5 - 5
main.c

@@ -440,13 +440,13 @@ static LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wParam,
           PostMessage(hWnd, WM_NULL, 0, 0);
           DestroyMenu(hMenu);
           break;
-        case WM_CLOSE:
-          mg_stop(ctx);
-          Shell_NotifyIcon(NIM_DELETE, &TrayIcon);
-          PostQuitMessage(0);
-          return 0;  // We've just sent our own quit message, with proper hwnd.
       }
       break;
+    case WM_CLOSE:
+      mg_stop(ctx);
+      Shell_NotifyIcon(NIM_DELETE, &TrayIcon);
+      PostQuitMessage(0);
+      return 0;  // We've just sent our own quit message, with proper hwnd.
   }
 
   return DefWindowProc(hWnd, msg, wParam, lParam);