[compiler-rt] r228702 - [ASan/Win] NFC, just minor simplification of the code
Timur Iskhodzhanov
timurrrr at google.com
Tue Feb 10 08:29:05 PST 2015
Author: timurrrr
Date: Tue Feb 10 10:29:05 2015
New Revision: 228702
URL: http://llvm.org/viewvc/llvm-project?rev=228702&view=rev
Log:
[ASan/Win] NFC, just minor simplification of the code
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc?rev=228702&r1=228701&r2=228702&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_win.cc Tue Feb 10 10:29:05 2015
@@ -263,8 +263,8 @@ void DumpProcessMap() {
for (size_t i = 0; i < num_modules; ++i) {
const ModuleInfo &mi = modules[i];
char module_name[MAX_PATH];
- bool got_module_name = GetModuleFileNameEx(
- cur_process, mi.handle, module_name, sizeof(module_name));
+ bool got_module_name = GetModuleFileNameA(
+ mi.handle, module_name, sizeof(module_name));
if (mi.end_address != 0) {
Printf("\t%p-%p %s\n", mi.base_address, mi.end_address,
got_module_name ? module_name : "[no name]");
More information about the llvm-commits
mailing list