comparison win/dw.c @ 2043:82e5c998df2e

Win: Fix crash on Edge HTML widget destruction. Skip freeing memory from chromium widget windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 24 Nov 2019 22:42:55 +0000
parents 133f29e9f488
children cb195d76de8e
comparison
equal deleted inserted replaced
2042:0d8b898b03e2 2043:82e5c998df2e
959 959
960 SendMessage(hwndTooltip, TTM_DELTOOL, 0, (LPARAM) (LPTOOLINFO) &ti); 960 SendMessage(hwndTooltip, TTM_DELTOOL, 0, (LPARAM) (LPTOOLINFO) &ti);
961 961
962 GetClassName(handle, tmpbuf, 99); 962 GetClassName(handle, tmpbuf, 99);
963 963
964 /* Don't try to free memory from an OLE embedded IE */ 964 /* Don't try to free memory from an embedded IE or Edge/Chromium window */
965 if(_tcsncmp(tmpbuf, TEXT("Internet Explorer_Server"), 25) == 0) 965 if(_tcsncmp(tmpbuf, TEXT("Internet Explorer_Server"), 25) == 0 ||
966 _tcsncmp(tmpbuf, TEXT("Chrome_WidgetWin_"), 17) == 0)
966 return TRUE; 967 return TRUE;
967 968
968 /* Delete font, icon and bitmap GDI objects in use */ 969 /* Delete font, icon and bitmap GDI objects in use */
969 if(oldfont) 970 if(oldfont)
970 DeleteObject(oldfont); 971 DeleteObject(oldfont);