mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-03-06 12:47:59 +01:00
Merge revision 514 changes:
- Windows: Fix crash in cefclient when entering long URLs via the address bar (issue #532). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1025@515 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
e501bfad99
commit
c84e36a96d
@ -226,7 +226,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
|
|||||||
if (wParam == VK_RETURN && g_handler.get()) {
|
if (wParam == VK_RETURN && g_handler.get()) {
|
||||||
// When the user hits the enter key load the URL
|
// When the user hits the enter key load the URL
|
||||||
CefRefPtr<CefBrowser> browser = g_handler->GetBrowser();
|
CefRefPtr<CefBrowser> browser = g_handler->GetBrowser();
|
||||||
wchar_t strPtr[MAX_URL_LENGTH] = {0};
|
wchar_t strPtr[MAX_URL_LENGTH+1] = {0};
|
||||||
*((LPWORD)strPtr) = MAX_URL_LENGTH;
|
*((LPWORD)strPtr) = MAX_URL_LENGTH;
|
||||||
LRESULT strLen = SendMessage(hWnd, EM_GETLINE, 0, (LPARAM)strPtr);
|
LRESULT strLen = SendMessage(hWnd, EM_GETLINE, 0, (LPARAM)strPtr);
|
||||||
if (strLen > 0) {
|
if (strLen > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user