Fix calling convention mismatch on managed -> native pinvoke
Pre-release
Pre-release
- 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.