Skip to content

Commit fc0d6c8

Browse files
committed
[BUGFIX] Fixed apis called in debug strings
1 parent 5fa5008 commit fc0d6c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unpack_scanner.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ size_t UnpackScanner::collectSecondaryTargets(IN std::set<DWORD> &_primaryTarget
256256
for (itr = _primaryTargets.begin(); itr != _primaryTargets.end(); itr++) {
257257
DWORD pid = *itr;
258258
#ifdef _DEBUG
259-
std::cout << "Searching children of: " << pid << " [" << get_process_name_str(pid) << "]\n";
259+
std::wcout << "Searching children of: " << pid << " [" << get_process_module_path(pid) << "]\n";
260260
#endif
261261
std::map<DWORD, std::set<DWORD> >::iterator child_itr = parentToChildrenMap.find(pid);
262262
if (child_itr == parentToChildrenMap.end()) {
@@ -273,7 +273,7 @@ size_t UnpackScanner::collectSecondaryTargets(IN std::set<DWORD> &_primaryTarget
273273
std::set<DWORD>::iterator itr;
274274
for (itr = childrenList.begin(); itr != childrenList.end(); itr++) {
275275
DWORD child_pid = *itr;
276-
std::cout << "Child: " << child_pid << " [" << get_process_name_str(child_pid) << "]\n";
276+
std::wcout << "Child: " << child_pid << " [" << get_process_module_path(child_pid) << "]\n";
277277
}
278278
#endif
279279
}

0 commit comments

Comments
 (0)