From edcd8286f21bfd0fb5d2dad2491783ab5082f63c Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 18 Oct 2009 16:20:58 +0000 Subject: [PATCH] Missed a paren. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84421 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/CIndex/CIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0