move misplaced return
authorDavid Bremner <dbremner@gmail.com>
Mon, 4 Jul 2016 21:32:04 +0000 (14:32 -0700)
committerIain Patterson <me@iain.cx>
Tue, 5 Jul 2016 09:03:43 +0000 (10:03 +0100)
gui.cpp

diff --git a/gui.cpp b/gui.cpp
index a0dfaa2..07a7d9d 100644 (file)
--- a/gui.cpp
+++ b/gui.cpp
@@ -808,8 +808,8 @@ int remove(HWND window) {
 \r
     case 3:\r
       popup_message(window, MB_OK | MB_ICONEXCLAMATION, NSSM_GUI_SERVICE_NOT_INSTALLED);\r
-      return 3;\r
       cleanup_nssm_service(service);\r
+      return 3;\r
 \r
     case 4:\r
       popup_message(window, MB_OK | MB_ICONEXCLAMATION, NSSM_GUI_REMOVE_SERVICE_FAILED);\r