Skip to content

Fix memory layout of ScNotificationHeader#146

Merged
mohzy83 merged 1 commit intomohzy83:masterfrom
rdipardo:refactor/struct-layout
Jan 18, 2026
Merged

Fix memory layout of ScNotificationHeader#146
mohzy83 merged 1 commit intomohzy83:masterfrom
rdipardo:refactor/struct-layout

Conversation

@rdipardo
Copy link
Copy Markdown
Contributor

@rdipardo rdipardo commented Jan 17, 2026

Fixed

Not (yet) fixed

  • Character positions remain limited to 32-bit values; i.e., notifications will not work properly in files of >2 GiB: https://community.notepad-plus-plus.org/post/73553

  • The strictly correct type of ScNotificationHeader.IdFrom is UIntPtr (to match the wParam field); but this will create a cascade of type errors in dependent modules

  • The field name Mmodifiers (sic) remains misspelled; fixing it may break dependent modules

 * adds the `CharacterSource` field introduced in Scintilla v4.2.0 [^1],
   part of the Notepad++ API since v7.8 [^2]

 * corrects field alignment for x64 assemblies [^3]

[^1]: https://sourceforge.net/p/scintilla/code/ci/4cfac35c71bd9612663a8761aec745bd6bb74e1f
[^2]: notepad-plus-plus/notepad-plus-plus@92bad0a
[^3]: kbilsted/NotepadPlusPlusPluginPack.Net#101
@mohzy83 mohzy83 merged commit 9d5c886 into mohzy83:master Jan 18, 2026
1 check passed
@mohzy83
Copy link
Copy Markdown
Owner

mohzy83 commented Jan 18, 2026

Thanks @rdipardo !
Could you please create an issue for the "not fixed" bugs?

@rdipardo rdipardo deleted the refactor/struct-layout branch January 18, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants