summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2021-03-06 16:53:24 +0000
committersr55 <[email protected]>2021-03-06 16:53:54 +0000
commitf7df4e116c5d9cf0840f34d6e298bdb1f011691a (patch)
tree28508273eea617e153ef23caf8124122d6b93195 /win/CS
parent9c8dfd09c53aba2467040812fb5e59bbc81a057c (diff)
WinGui: Fix an issue with UTF8 preset names. Fixes #3458
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrake.Interop/Interop/HandBrakePresetService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/HandBrakePresetService.cs b/win/CS/HandBrake.Interop/Interop/HandBrakePresetService.cs
index fdd987336..8855f7a88 100644
--- a/win/CS/HandBrake.Interop/Interop/HandBrakePresetService.cs
+++ b/win/CS/HandBrake.Interop/Interop/HandBrakePresetService.cs
@@ -54,7 +54,7 @@ namespace HandBrake.Interop.Interop
public static PresetTransportContainer GetPresetsFromFile(string filename)
{
IntPtr presetStringPointer = HBFunctions.hb_presets_read_file_json(InteropUtilities.ToUtf8PtrFromString(filename));
- string presetJson = Marshal.PtrToStringAnsi(presetStringPointer);
+ string presetJson = Marshal.PtrToStringUTF8(presetStringPointer);
if (!string.IsNullOrEmpty(presetJson))
{