Skip to content

Commit 74ef526

Browse files
avjtsrobmen
authored andcommitted
Fix crash when CloseApplications_X64 closes Electron app
1 parent b228690 commit 74ef526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/dutil/WixToolset.DUtil/procutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ extern "C" HRESULT DAPI ProcWaitForIds(
517517
DWORD cProcesses = 0;
518518
BOOL fTimedOut = FALSE;
519519

520-
rghProcesses = static_cast<HANDLE*>(MemAlloc(sizeof(DWORD) * cProcessIds, TRUE));
520+
rghProcesses = static_cast<HANDLE*>(MemAlloc(sizeof(HANDLE) * cProcessIds, TRUE));
521521
ProcExitOnNull(rgdwProcessIds, hr, E_OUTOFMEMORY, "Failed to allocate array for process ID Handles.");
522522

523523
for (DWORD i = 0; i < cProcessIds; ++i)

0 commit comments

Comments
 (0)