Skip to content

Commit f0276e0

Browse files
authored
windows: add missing DllImport attribute to LocalFree (#923)
Accidentally left off the `[DllImport]` attribute when adding this `extern`.. now it'll actually point to the correct function in the DLL.
2 parents 3ffa190 + 15b522f commit f0276e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/shared/Core/Interop/Windows/Native/Kernel32.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ public static extern bool SetConsoleMode(
249249
/// <para/>
250250
/// To get extended error information, call GetLastError.
251251
/// </returns>
252+
[DllImport(LibraryName, CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, SetLastError = true)]
252253
public static extern IntPtr LocalFree(IntPtr ptr);
253254
}
254255

0 commit comments

Comments
 (0)