From 7289b3b65bb59369f115824eaf6b21cdde0ba65d Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sat, 14 Dec 2019 16:58:05 +0800 Subject: [PATCH] Update ChatBoxViewModel.cs --- .../ViewModel/Basic/ChatBoxViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Shared/HandyControlDemo_Shared/ViewModel/Basic/ChatBoxViewModel.cs b/src/Shared/HandyControlDemo_Shared/ViewModel/Basic/ChatBoxViewModel.cs index ea624f86..7fc48de2 100644 --- a/src/Shared/HandyControlDemo_Shared/ViewModel/Basic/ChatBoxViewModel.cs +++ b/src/Shared/HandyControlDemo_Shared/ViewModel/Basic/ChatBoxViewModel.cs @@ -133,9 +133,10 @@ namespace HandyControlDemo.ViewModel } } - var cachePath = $"\"{AudioCachePath}\\{Guid.NewGuid().ToString()}\""; + var cachePath = $"{AudioCachePath}\\{Guid.NewGuid().ToString()}"; + var cachePathWithQuotes = $"\"{cachePath}\""; ExternDllHelper.MciSendString("stop movie", "", 0, 0); - ExternDllHelper.MciSendString($"save movie {cachePath}", "", 0, 0); + ExternDllHelper.MciSendString($"save movie {cachePathWithQuotes}", "", 0, 0); ExternDllHelper.MciSendString("close movie", "", 0, 0); _stopwatch.Stop();