This commit is contained in:
yangjiaxuan 2022-08-22 15:26:33 +08:00
commit fe0c555b25
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ bool AppIsRun(const std::string& appName)
HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pe.th32ProcessID);
if (nullptr != hProcess)
{
::GetProcessImageFileNameW(hProcess, exeFullPath, 1024);
::GetModuleFileNameExW(hProcess, NULL, exeFullPath, 1024);
::CloseHandle(hProcess);
}