Allow single character passwords

This commit is contained in:
Alexander Zakharov 2017-12-01 11:55:06 +03:00
parent 1f0b60a405
commit 04ebaefede

View File

@ -674,7 +674,7 @@ main(int argc, char *argv[])
break;
case 'p':
if ((optarg[0] != '-') && (optarg[1] != 0))
if (!((optarg[0] == '-') && (optarg[1] == 0)))
{
STRNCPY(g_password, optarg, sizeof(g_password));
flags |= RDP_INFO_AUTOLOGON;