Skip to content
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

Fix crash with MathRichEditBox on x86 #853

Merged
merged 1 commit into from
Dec 7, 2019
Merged

Fix crash with MathRichEditBox on x86 #853

merged 1 commit into from
Dec 7, 2019

Conversation

rudyhuyn
Copy link
Contributor

@rudyhuyn rudyhuyn commented Dec 6, 2019

image

x86 uses the wrong calling convention when calling SetMath, GetMath, SetMathMode, making the application crash when it tries to clean the stack (already cleaned by the function).

Description of the changes:

  • Add __stdcall to functions from ITextDocument4 to force the calling convention.

Note: other modifications aren't necessary but it makes the code a little closer to the SDK.

How changes were validated:

  • manually

@rudyhuyn rudyhuyn requested a review from mcooley December 6, 2019 10:52
Copy link
Member

@mcooley mcooley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!!

@sanderl sanderl added the graphing calculator Work items related to the graphing calculator feature. label Dec 6, 2019
@EriWong EriWong self-assigned this Dec 6, 2019
@EriWong EriWong merged commit 5209084 into microsoft:feature/GraphingCalculator Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphing calculator Work items related to the graphing calculator feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants