mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 04:26:10 -07:00
Unify settings access between freerdp 2 and 3
use `instance->context->settings` in both versions.
This commit is contained in:
parent
eb7ab3907b
commit
7545077a16
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue