mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-15 11:40:49 +01:00
Merge revision 1045 changes:
- Windows: Avoid assertion when entering zero-length text in the default JavaScript prompt dialog (issue #862). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1364@1046 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
234b7804ef
commit
6dd70de09f
@ -61,8 +61,10 @@ INT_PTR CALLBACK CefJavaScriptDialog::DialogProc(HWND dialog,
|
|||||||
if (owner->message_type_ == content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) {
|
if (owner->message_type_ == content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) {
|
||||||
size_t length =
|
size_t length =
|
||||||
GetWindowTextLength(GetDlgItem(dialog, IDC_PROMPTEDIT)) + 1;
|
GetWindowTextLength(GetDlgItem(dialog, IDC_PROMPTEDIT)) + 1;
|
||||||
GetDlgItemText(dialog, IDC_PROMPTEDIT,
|
if (length > 1) {
|
||||||
WriteInto(&user_input, length), length);
|
GetDlgItemText(dialog, IDC_PROMPTEDIT,
|
||||||
|
WriteInto(&user_input, length), length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IDCANCEL:
|
case IDCANCEL:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user