Skip to content

Commit

Permalink
Add an error message when service pipe does not validate
Browse files Browse the repository at this point in the history
Signed-off-by: Selva Nair <[email protected]>
  • Loading branch information
selvanair committed May 17, 2024
1 parent ab88616 commit c3ae7aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions openvpn-gui-res.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
#define IDS_ERR_NOTSTARTED_ISERVICE 1711
#define IDS_ERR_INSTALL_ISERVICE 1712
#define IDS_ERR_NOTSTARTED_ISERVICE_ADM 1713
#define IDS_ERR_INVALID_SERVICE_PIPE 1714

/* Registry Related */
#define IDS_ERR_GET_WINDOWS_DIR 1801
Expand Down
1 change: 1 addition & 0 deletions openvpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -2762,6 +2762,7 @@ LaunchOpenVPN(connection_t *c)
{
CloseHandle(c->exit_event);
CloseServiceIO(&c->iserv);
ShowLocalizedMsgEx(MB_OK|MB_ICONERROR, o.hWnd, TEXT(PACKAGE_NAME), IDS_ERR_INVALID_SERVICE_PIPE);
goto out;
}

Expand Down
1 change: 1 addition & 0 deletions res/openvpn-gui-res-en.rc
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ Wintun driver and tasks requiring administrative access may not work."
Wintun driver and tasks requiring administrative access may not work."
IDS_ERR_NOTSTARTED_ISERVICE_ADM """OpenVPNServiceInteractive"" is not started.\n\
Wintun driver will not work."
IDS_ERR_INVALID_SERVICE_PIPE "Validation of Interactive Service Pipe failed."

/* registry */
IDS_ERR_GET_WINDOWS_DIR "Error getting Windows Directory."
Expand Down

0 comments on commit c3ae7aa

Please sign in to comment.