mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-22 22:57:11 +00:00
UTF-8 treated like ASCII for old .NET
This commit is contained in:
@@ -31,7 +31,11 @@ namespace SabreTools.Models.PortableExecutable
|
||||
/// <summary>
|
||||
/// zero terminated UTF8 path and file name
|
||||
/// </summary>
|
||||
[MarshalAs(UnmanagedType.LPWStr)]
|
||||
#if NET472_OR_GREATER || NETCOREAPP
|
||||
[MarshalAs(UnmanagedType.LPUTF8Str)]
|
||||
#else
|
||||
[MarshalAs(UnmanagedType.LPStr)]
|
||||
#endif
|
||||
public string? PathAndFileName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user