[Sanitizer] fix windows build

llvm-svn: 161170
This commit is contained in:
Alexey Samsonov 2012-08-02 11:38:58 +00:00
parent 9d74295078
commit 2e62a9a765
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ bool GetRealFunctionAddress(const char *func_name, uptr *func_addr) {
};
*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);
}