commit | a8fbcd7163d199edaf4f3f71a05403b79207fc2f | [log] [tgz] |
---|---|---|
author | Alexey Samsonov <samsonov@google.com> | Thu Aug 02 11:38:58 2012 +0000 |
committer | Alexey Samsonov <samsonov@google.com> | Thu Aug 02 11:38:58 2012 +0000 |
tree | fece864fb3bb4c1813e07ab74d55e23a815328e1 | |
parent | bfa11b66d2d9e677be00164d44bcc0c9c6bc8f82 [diff] |
[Sanitizer] fix windows build git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161170 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/interception/interception_win.cc b/lib/interception/interception_win.cc index 8e35a3b..abbab24 100644 --- a/lib/interception/interception_win.cc +++ b/lib/interception/interception_win.cc
@@ -28,7 +28,7 @@ }; *func_addr = 0; for (size_t i = 0; *func_addr == 0 && DLLS[i]; ++i) { - *func_addr = GetProcAddress(GetModuleHandleA(DLLS[i]), func_name); + *func_addr = (uptr)GetProcAddress(GetModuleHandleA(DLLS[i]), func_name); } return (*func_addr != 0); }