解决升级程序判断app是否运行出错的问题

This commit is contained in:
luoliangyi 2022-08-22 15:18:07 +08:00
parent 5b3b400b17
commit af7599fcc7
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);
}