From 4eebc1b6ee0eaa6909f0369162f43e2e5e48132c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 27 Apr 2026 22:30:48 +0800 Subject: [PATCH] Platform (Windows): adds comments Co-authored-by: Copilot --- src/common/impl/FFPlatform_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/impl/FFPlatform_windows.c b/src/common/impl/FFPlatform_windows.c index e352af140..e483071e0 100644 --- a/src/common/impl/FFPlatform_windows.c +++ b/src/common/impl/FFPlatform_windows.c @@ -145,7 +145,7 @@ static void getUserName(FFPlatform* platform) { PLSA_UNICODE_STRING userName = NULL; if (NT_SUCCESS(LsaGetUserName(&userName, NULL))) { ffStrbufSetNWS(&platform->userName, userName->Length / sizeof(wchar_t), userName->Buffer); - RtlFreeUnicodeString(userName); + RtlFreeUnicodeString(userName); // Required. userName.Buffer is allocated separately LsaFreeMemory(userName); } else { ffStrbufSetS(&platform->userName, getenv("USERNAME"));