Mercurial > dwindows
diff 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 |
line wrap: on
line diff
--- a/win/dw.c Sun Nov 24 21:01:46 2019 +0000 +++ b/win/dw.c Sun Nov 24 22:42:55 2019 +0000 @@ -961,8 +961,9 @@ GetClassName(handle, tmpbuf, 99); - /* Don't try to free memory from an OLE embedded IE */ - if(_tcsncmp(tmpbuf, TEXT("Internet Explorer_Server"), 25) == 0) + /* Don't try to free memory from an embedded IE or Edge/Chromium window */ + if(_tcsncmp(tmpbuf, TEXT("Internet Explorer_Server"), 25) == 0 || + _tcsncmp(tmpbuf, TEXT("Chrome_WidgetWin_"), 17) == 0) return TRUE; /* Delete font, icon and bitmap GDI objects in use */