Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return null when Variant contains BSTR
I found this one when implement VARIANT marshalling for NativeAOT. Without that I have to resort to duplicate implementation in that class. PR where I discover this - dotnet/runtimelab#1142 Problem is `Marshal.PtrToStringBSTR` throw exception when passed `IntPtr.Zero`, but `Marshal.StringToBSTR` produce `IntPtr.Zero` when given null.
- Loading branch information