Skip to content

Fix calling convention mismatch on managed -> native pinvoke

Pre-release
Pre-release

Choose a tag to compare

@bretambrose bretambrose released this 30 Sep 18:26
· 29 commits to main since this release
4ecb6fe
  • This release fixes an issue where the calling convention on the managed delegate did not match the calling convention of the targeted native function (x86 only). There was no actual stack corruption because that particular mismatch (_stdcall -> _cdecl) is recoverable simply by resetting the stack pointer to its original value and this is what pinvoke does when it detects the condition.