Minor bugfix

This commit is contained in:
Alberto Ortega 2014-12-31 20:28:11 +01:00
parent 02a6590271
commit 417963345c

View File

@ -342,11 +342,11 @@ int vbox_processes(int writelogs) {
do { do {
if (lstrcmpi(pentry.szExeFile, "vboxservice.exe") == 0) { if (lstrcmpi(pentry.szExeFile, "vboxservice.exe") == 0) {
write_log("VirtualBox traced using vboxservice.exe process"); if (writelogs) write_log("VirtualBox traced using vboxservice.exe process");
res = TRUE; res = TRUE;
} }
if (lstrcmpi(pentry.szExeFile, "vboxtray.exe") == 0) { if (lstrcmpi(pentry.szExeFile, "vboxtray.exe") == 0) {
write_log("VirtualBox traced using vboxtray.exe process"); if (writelogs) write_log("VirtualBox traced using vboxtray.exe process");
res = TRUE; res = TRUE;
} }
} while (Process32Next(hpSnap, &pentry)); } while (Process32Next(hpSnap, &pentry));