From fba33df1d31e87deac1c97965fc5c410f4dda2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 14 Oct 2024 16:28:53 +0800 Subject: [PATCH] Kernel: don't print `( - ` --- src/util/platform/FFPlatform_windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/platform/FFPlatform_windows.c b/src/util/platform/FFPlatform_windows.c index cef95fff0..c66b0ab10 100644 --- a/src/util/platform/FFPlatform_windows.c +++ b/src/util/platform/FFPlatform_windows.c @@ -167,7 +167,8 @@ static void detectWine(FFstrbuf* buf) if (!hntdll) return; pwine_get_version = (void *)GetProcAddress(hntdll, "wine_get_version"); if (!pwine_get_version) return; - ffStrbufAppendF(buf, " - wine %s", pwine_get_version()); + ffStrbufAppendS(buf, buf->length ? " - wine " : "wine "); + ffStrbufAppendS(buf, pwine_get_version()); } static void getSystemReleaseAndVersion(FFPlatformSysinfo* info)