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

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