Closed sylveon closed 4 years ago
Thanks sylveon for opening a Pull Request! The reviewers will test the PR and highlight if there is any merge conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌
Welp, apparently this doesn't solve the issue, will need to investigate
Found the issue... VCRT forwarders aren't marked as CFG-aware
This works if combined with #251
I've concerns about adding the Control Flow Guard (CFG) directive because it's a scenario out of the test matrix, and we need to validate all the top scenarios.
@sylveon, did you tested the XAML Islands Samples with this configuration? This is the minimum bar.
Well, my application works with this and anything else that is broken by CFG is supposed to be a compiler bug. I checked anyways, and here's a build of NativeXamlIslands.sln
running fine with a CFG-enabled XamlHost DLL
This is cool 😊. What about the WPF and WinForms samples? We need to make sure that we don't break other scenarios.
By the way, the C++ sample we did is awful. It hurts my eyes every time I run it.
Thanks so much @sylveon. I'm testing this on my machine as well, before approving the PR.
Fixes #263
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The DLL fails to load if strict Control Flow Guard is enforced
What is the new behavior?
The DLL uses Control Flow Guard and does not fail to load
PR Checklist
Please check if your PR fulfills the following requirements: