Skip to content

Commit

Permalink
Unify settings access between freerdp 2 and 3
Browse files Browse the repository at this point in the history
use `instance->context->settings` in both versions.
  • Loading branch information
ccc-aaa committed Aug 13, 2024
1 parent eb7ab39 commit 7545077
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hydra-rdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ freerdp *instance = 0;
BOOL rdp_connect(char *server, int32_t port, char *domain, char *login, char *password) {
int32_t err = 0;

#if FREERDP_VERSION_MAJOR == 3
rdpSettings* settings = instance->context->settings;
#else
rdpSettings* settings = instance->settings;
#endif

settings->Username = login;
settings->Password = password;
Expand Down

0 comments on commit 7545077

Please sign in to comment.