microsoft / CsWin32

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.
MIT License
2.07k stars 87 forks source link

CredUIPromptForCredentials should not emit `ref` on `ref Span<char>` parameter #1133

Open AArnott opened 8 months ago

AArnott commented 8 months ago

The CredUIPromptForCredentials function takes a PWSTR parameter. The friendly overload currently replaces this with ref Span<char> when Span<char> is sufficient, as the friendly overload never rewrites the reference to the span.