/*\r
* Copyright (c) 2005 Massachusetts Institute of Technology\r
+ * Copyright (c) 2006 Secure Endpoints Inc.\r
*\r
* Permission is hereby granted, free of charge, to any person\r
* obtaining a copy of this software and associated documentation\r
}\r
}\r
\r
+static void\r
+nc_clear_password_fields(khui_nc_wnd_data * d)\r
+{\r
+ khm_size i;\r
+ khm_boolean need_sync = FALSE;\r
+\r
+ khui_cw_lock_nc(d->nc);\r
+\r
+ for (i=0; i < d->nc->n_prompts; i++) {\r
+ if ((d->nc->prompts[i]->flags & KHUI_NCPROMPT_FLAG_HIDDEN) &&\r
+ d->nc->prompts[i]->hwnd_edit) {\r
+ SetWindowText(d->nc->prompts[i]->hwnd_edit,\r
+ L"");\r
+ need_sync = TRUE;\r
+ }\r
+ }\r
+\r
+ khui_cw_unlock_nc(d->nc);\r
+\r
+ if (need_sync) {\r
+ khui_cw_sync_prompt_values(d->nc);\r
+ }\r
+}\r
+\r
#define NC_MAXCCH_CREDTEXT 16384\r
#define NC_MAXCB_CREDTEXT (NC_MAXCCH_CREDTEXT * sizeof(wchar_t))\r
\r
khm_size cbbuf;\r
khm_int32 flags;\r
\r
-\r
LoadString(khm_hInstance, IDS_NC_CREDTEXT_ID_ONE, \r
main_fmt, (int) ARRAYLENGTH(main_fmt));\r
\r
hw = GetDlgItem(d->dlg_bb, IDCANCEL);\r
EnableWindow(hw, TRUE);\r
\r
+ nc_clear_password_fields(d);\r
+\r
return TRUE;\r
}\r
\r