Skip to content

Commit 15b522f

Browse files
committed
windows: add missing DllImport attribute to LocalFree
1 parent 02204ac commit 15b522f

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)