fix: parameter error (#11777)

This commit is contained in:
YGF
2025-05-16 09:52:40 +08:00
committed by GitHub
parent 5fa17e440a
commit f1a4494e3c

View File

@@ -246,7 +246,7 @@ extern "C"
si.wShowWindow = SW_SHOW;
}
wchar_t buf[MAX_PATH];
wcscpy_s(buf, sizeof(buf), cmd);
wcscpy_s(buf, MAX_PATH, cmd);
PROCESS_INFORMATION pi;
LPVOID lpEnvironment = NULL;
DWORD dwCreationFlags = DETACHED_PROCESS;