Uh oh!
There was an error while loading. Please reload this page.
Fix Interop.Gdi32.StartDoc p/invoke - #76569
Conversation
ghost
commented
Oct 3, 2022
Tagging subscribers to this area: @dotnet/area-system-drawing Issue Details
This switches the See #76538. This is the fix in main. We will need to backport to 7.0.
|
Uh oh!
There was an error while loading. Please reload this page.
elinor-fung
commented
Oct 4, 2022
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3179059542 |
StartDoctakes a pointer to aDOCINFOstruct. We hadDOCINFOdefined as a class on the managed side such that built-in marshalling would marshal it as a pointer. With the switch to custom marshalling viaNativeMarshalling, we ended up marshalling the struct that is the native representation rather than a pointer to it.This switches the
DOCINFOto a struct and updates the parameter toStartDocto bein, such that it should be marshalled as a pointer to the struct by both generated and built-in marshalling.See #76538. This is the fix in main. We will need to backport to 7.0.
cc @ericstj@JeremyKuhne