Commit b16f189a authored by captainwong's avatar captainwong

fix process A/W

parent 1f3da1b6
......@@ -213,7 +213,7 @@ inline std::vector<ProcessInfo::ModuleInfo> getProcessModules(DWORD dwPID, Error
info.base_address = (DWORD)me32.modBaseAddr;
info.base_size = me32.modBaseSize;
modules.emplace_back(info);
} while (Module32Next(hModuleSnap, &me32));
} while (Module32NextW(hModuleSnap, &me32));
CloseHandle(hModuleSnap);
return(modules);
......@@ -423,7 +423,7 @@ inline ProcessInfos getProcessesInfo(ErrorOutputFunc output = dummyErrorOutputFu
pinfos.emplace_back(pinfo);
if(hProcess){ CloseHandle(hProcess); }
} while (Process32Next(hProcessSnap, &pe32));
} while (Process32NextW(hProcessSnap, &pe32));
CloseHandle(hProcessSnap);
return(pinfos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment