Module: wine Branch: master Commit: ab179341e2c1f1f833adc16b91ed7e3e24502209 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab179341e2c1f1f833adc16b91...
Author: Hans Leidekker hans@codeweavers.com Date: Thu Oct 18 14:16:05 2012 +0200
credui: Show the save password checkbox if both CREDUI_FLAGS_DO_NOT_PERSIST and CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX are specified.
---
dlls/credui/credui_main.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c index 5a8c05c..e3e964f 100644 --- a/dlls/credui/credui_main.c +++ b/dlls/credui/credui_main.c @@ -410,7 +410,9 @@ static BOOL CredDialogInit(HWND hwndDlg, struct cred_dialog_params *params) SetWindowTextW(hwndDlg, title); }
- if (params->dwFlags & (CREDUI_FLAGS_DO_NOT_PERSIST|CREDUI_FLAGS_PERSIST)) + if (params->dwFlags & CREDUI_FLAGS_PERSIST || + (params->dwFlags & CREDUI_FLAGS_DO_NOT_PERSIST && + !(params->dwFlags & CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX))) ShowWindow(GetDlgItem(hwndDlg, IDC_SAVE), SW_HIDE); else if (params->fSave) CheckDlgButton(hwndDlg, IDC_SAVE, BST_CHECKED);