-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getLanguageDesc bug #146
Comments
Not sure, but I assume that here one needs to add 1 to the buffer allocation. |
well, getPluginHomePath does use ( |
See N++ description of how to use NPPM_GETLANGUAGEDESC and NPPM_GETLANGUAGENAME and the size+1 was missing as you already found out. There are tests for that: |
missing +1 for the allocated buffer for NPPM_GETLANGUAGENAME and NPPM_GETLANGUAGEDESC
The test itself seems to be fine. |
@Ekopalypse and I have noticed that there's a potential bug in PythonScript's implementation of getLanguageDesc: https://community.notepad-plus-plus.org/post/51274
We can get it to reliably crash using the brief script:
When I run the equivalent script using my Perl Win32::Mechanize::NotepadPlusPlus to call the underlying NPPM_GETLANGUAGEDESC (or if Eko uses python's
ctypes.windll.user32.SendMessageW
to do the same), it works reliably.The text was updated successfully, but these errors were encountered: