diff --git a/src/libs/dutil/WixToolset.DUtil/procutil.cpp b/src/libs/dutil/WixToolset.DUtil/procutil.cpp index aba3b495f..6cd3214ca 100644 --- a/src/libs/dutil/WixToolset.DUtil/procutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/procutil.cpp @@ -517,7 +517,7 @@ extern "C" HRESULT DAPI ProcWaitForIds( DWORD cProcesses = 0; BOOL fTimedOut = FALSE; - rghProcesses = static_cast(MemAlloc(sizeof(DWORD) * cProcessIds, TRUE)); + rghProcesses = static_cast(MemAlloc(sizeof(HANDLE) * cProcessIds, TRUE)); ProcExitOnNull(rgdwProcessIds, hr, E_OUTOFMEMORY, "Failed to allocate array for process ID Handles."); for (DWORD i = 0; i < cProcessIds; ++i)