Skip to content

Conversation

@JeremyKuhne
Copy link
Member

@JeremyKuhne JeremyKuhne commented Aug 24, 2023

Port of #9769 - do not squash

COM code audit fixes:

  • AxContainer.IOleInPlaceFrame.SetActiveObject was not ref counting correctly or checking for null
  • OleInterfaces.IOleControlSite.GetExtendedControl was unnecessarily using Marshal
  • OleIntefaces.IOleInPlaceSite.GetWindowContext brought in line with MFC behavior with null pointers
  • Use SearchValues in ActiveXImpl (minor perf fix)
  • ActiveXImpl.InPlaceActivate was incorrectly ref counting
  • ActiveXImpl Save/Load were releasing IPropertyBag when it was passed directly from native code, move the using local to the internal code
  • ActiveXImpl.QuickActivate should not fail if we cannot get IConnectionPointContainer
  • Add DisposeHelper.NullAndRelease helper for safer release of pointer fields
  • Harden AgileComPointer a bit more by using Interlocked
Microsoft Reviewers: Open in CodeFlow

COM code audit fixes:

- AxContainer.IOleInPlaceFrame.SetActiveObject was not ref counting correctly or checking for null
- OleInterfaces.IOleControlSite.GetExtendedControl was unnecessarily using Marshal
- OleIntefaces.IOleInPlaceSite.GetWindowContext brought in line with MFC behavior with null pointers
- Use SearchValues in ActiveXImpl (minor perf fix)
- ActiveXImpl.InPlaceActivate was incorrectly ref counting
- ActiveXImpl Save/Load were releasing IPropertyBag when it was passed directly from native code, move the using local to the internal code
- ActiveXImpl.QuickActivate should not fail if we cannot get IConnectionPointContainer
- Add DisposeHelper.NullAndRelease helper for safer release of pointer fields
- Harden AgileComPointer a bit more by using Interlocked
@JeremyKuhne JeremyKuhne requested a review from a team as a code owner August 24, 2023 20:11
@ghost ghost assigned JeremyKuhne Aug 24, 2023
@JeremyKuhne JeremyKuhne enabled auto-merge August 24, 2023 20:12
@JeremyKuhne JeremyKuhne merged commit 74c0faa into dotnet:release/8.0 Aug 24, 2023
@JeremyKuhne JeremyKuhne deleted the port9769 branch August 24, 2023 23:07
@ghost ghost locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants