From: David Bremner Date: Mon, 4 Jul 2016 21:32:04 +0000 (-0700) Subject: move misplaced return X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=ed537d89394dcb485c5658ae2db972c4f5604d3a;p=nssm.git move misplaced return --- diff --git a/gui.cpp b/gui.cpp index a0dfaa2..07a7d9d 100644 --- a/gui.cpp +++ b/gui.cpp @@ -808,8 +808,8 @@ int remove(HWND window) { case 3: popup_message(window, MB_OK | MB_ICONEXCLAMATION, NSSM_GUI_SERVICE_NOT_INSTALLED); - return 3; cleanup_nssm_service(service); + return 3; case 4: popup_message(window, MB_OK | MB_ICONEXCLAMATION, NSSM_GUI_REMOVE_SERVICE_FAILED);