diff options
author | Jesús Corrius <jesus@softcatala.org> | 2011-06-20 22:21:13 +0200 |
---|---|---|
committer | Jesús Corrius <jesus@softcatala.org> | 2011-06-20 22:21:13 +0200 |
commit | 6bc21bfd345c80a6b3a9cb8b966326e603a1bae1 (patch) | |
tree | 70fe490a943c0539a0daeffe865631cad78a3989 /vcl/win | |
parent | c481fc6bb8ba7777e4890b9f76d68827f46beb77 (diff) |
Avoid possible null pointer dereference
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/window/salframe.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index ed428e473aae..9541593a5c51 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -5239,7 +5239,11 @@ static void ImplHandleInputLangChange( HWND hWnd, WPARAM, LPARAM lParam ) // Feststellen, ob wir IME unterstuetzen WinSalFrame* pFrame = GetWindowPtr( hWnd ); - if ( pFrame && pFrame->mbIME && pFrame->mhDefIMEContext ) + + if ( !pFrame ) + return; + + if ( pFrame->mbIME && pFrame->mhDefIMEContext ) { HKL hKL = (HKL)lParam; UINT nImeProps = ImmGetProperty( hKL, IGP_PROPERTY ); |