Native window decorations: fixed occasional application crash on Windows 10 in flatlaf-windows.dll (issue #357)

This commit is contained in:
Karl Tauber
2021-07-30 23:06:09 +02:00
parent 60e5861de4
commit d3e39a1359
2 changed files with 6 additions and 0 deletions

View File

@@ -3,10 +3,14 @@ FlatLaf Change Log
## 1.5-SNAPSHOT ## 1.5-SNAPSHOT
#### Fixed bugs
- InternalFrame: Limit internal frame bounds to parent bounds on resize. Also - InternalFrame: Limit internal frame bounds to parent bounds on resize. Also
honor maximum size of internal frame. (issue #362) honor maximum size of internal frame. (issue #362)
- Popup: Fixed incorrectly placed drop shadow for medium-weight popups in - Popup: Fixed incorrectly placed drop shadow for medium-weight popups in
maximized windows. (issue #358) maximized windows. (issue #358)
- Native window decorations: Fixed occasional application crash on Windows 10 in
`flatlaf-windows.dll`. (issue #357)
## 1.4 ## 1.4

View File

@@ -176,6 +176,8 @@ void FlatWndProc::updateFrame( HWND hwnd, int state ) {
LRESULT CALLBACK FlatWndProc::StaticWindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) { LRESULT CALLBACK FlatWndProc::StaticWindowProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) {
FlatWndProc* fwp = (FlatWndProc*) hwndMap->get( hwnd ); FlatWndProc* fwp = (FlatWndProc*) hwndMap->get( hwnd );
if( fwp == NULL )
return 0;
return fwp->WindowProc( hwnd, uMsg, wParam, lParam ); return fwp->WindowProc( hwnd, uMsg, wParam, lParam );
} }