Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@loic-sharma
Copy link
Member

Cherry pick of #35442 into flutter-3.2-candidate.5
Cherry pick issue: flutter/flutter#109742

The engine's Window references GetPointerType, which is supported only on Windows 8 and after. This causes Flutter apps to crash immediately on Windows 7.

This introduces WindowsProcTable to look up Windows APIs dynamically.

This bug was introduced in: #31594

Fixes flutter/flutter#109412

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@loic-sharma loic-sharma changed the title [Windows] Don't crash if GetPointerType is unsupported [CP] [Windows] Don't crash if GetPointerType is unsupported Aug 18, 2022
@loic-sharma
Copy link
Member Author

Blocked by: flutter/flutter#109797

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

LGTM stamp from a Japanese personal seal

@loic-sharma loic-sharma force-pushed the flutter-3.2-candidate.5 branch from 0b7c82a to 4141570 Compare August 22, 2022 16:35
Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

re-lgtm

@itsjustkevin itsjustkevin merged commit d9846cc into flutter:flutter-3.2-candidate.5 Aug 22, 2022
@loic-sharma loic-sharma deleted the flutter-3.2-candidate.5 branch August 22, 2022 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants