Skip to content

Commit

Permalink
Fix crash when CloseApplications_X64 closes Electron app
Browse files Browse the repository at this point in the history
  • Loading branch information
avjts authored and robmen committed Feb 6, 2024
1 parent b228690 commit 74ef526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/dutil/WixToolset.DUtil/procutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ extern "C" HRESULT DAPI ProcWaitForIds(
DWORD cProcesses = 0;
BOOL fTimedOut = FALSE;

rghProcesses = static_cast<HANDLE*>(MemAlloc(sizeof(DWORD) * cProcessIds, TRUE));
rghProcesses = static_cast<HANDLE*>(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)
Expand Down

0 comments on commit 74ef526

Please sign in to comment.