microsoft / CsWin32

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

AArnott opened this issue · comments

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.