Skip to content

Commit 9ea4415

Browse files
authored
Fix entrypoint name. (#65745)
Fixes #65648
1 parent a57766e commit 9ea4415

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libraries/Common/tests/TestUtilities/System/WindowsIdentityFixture.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,9 @@ private void CreateUser()
109109
}
110110
}
111111

112-
[GeneratedDllImport("advapi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
112+
[GeneratedDllImport("advapi32.dll", EntryPoint = "LogonUserW", SetLastError = true, CharSet = CharSet.Unicode)]
113113
private static partial bool LogonUser(string userName, string domain, string password, int logonType, int logonProvider, out SafeAccessTokenHandle safeAccessTokenHandle);
114114

115-
116115
#pragma warning disable DLLIMPORTGENANALYZER015 // Use 'GeneratedDllImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time
117116
// TODO: [DllImportGenerator] Switch to use GeneratedDllImport once we add support for non-blittable struct marshalling.
118117
[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]

0 commit comments

Comments
 (0)