mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 16:24:27 +02:00
Fix Notepad++ crash due to calling NPPM_GETLANGUAGENAME with WPARAM -1
Fixes #12009, close #12011
This commit is contained in:
parent
f2c4ecd7e1
commit
30f027b6a5
@ -2406,7 +2406,7 @@ generic_string Notepad_plus::getLangDesc(LangType langType, bool getName)
|
||||
return generic_string(lexerNameW);
|
||||
}
|
||||
|
||||
if (langType > L_EXTERNAL)
|
||||
if (langType < L_TEXT || langType > L_EXTERNAL)
|
||||
langType = L_TEXT;
|
||||
|
||||
generic_string str2Show;
|
||||
|
Loading…
x
Reference in New Issue
Block a user