To show it and to prevent it's being cleared, write current password

into field in game info dialog.
This commit is contained in:
ehouse 2006-05-28 18:16:08 +00:00
parent b498d3d18d
commit d66c27cd35

View file

@ -203,10 +203,13 @@ loadFromGameInfo( HWND hDlg, CEAppGlobals* globals, GameInfoState* giState )
}
/* set the password, if any */
if ( lp->password != NULL ) {
resID = PASS_EDIT1 + (NUM_COLS*i);
ceSetDlgItemText( hDlg, resID, lp->password );
}
/* put a string in the moronic combobox */
swprintf( widebuf, L"%d", i + 1 );
SendDlgItemMessage( hDlg, IDC_NPLAYERSCOMBO, CB_ADDSTRING, 0,
(long)widebuf );
}