diff options
-rw-r--r-- | tools/CIndex/CIndex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index 8fa5aa3418..af2b417ab8 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -300,7 +300,7 @@ const llvm::sys::Path& CIndexer::getClangPath() { #ifdef LLVM_ON_WIN32 MEMORY_BASIC_INFORMATION mbi; char path[MAX_PATH]; - VirtualQuery(void *)(uintptr_t)clang_createTranslationUnit, &mbi, + VirtualQuery((void *)(uintptr_t)clang_createTranslationUnit, &mbi, sizeof(mbi)); GetModuleFileNameA((HINSTANCE)mbi.AllocationBase, path, MAX_PATH); |