解决升级程序判断app是否运行出错的问题
This commit is contained in:
parent
5b3b400b17
commit
af7599fcc7
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue