Skip to content

Commit 4055d12

Browse files
committed
build: Always call finalize() after initialize() in ca.dll
Just in case initialize() can fail in the future
1 parent 2b7e637 commit 4055d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/windows/packaging/tools/ca/dll/customaction.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern "C" UINT WINAPI CheckElevatedCustomAction(MSIHANDLE hInstall)
4444
hr = initialize(hInstall, "CheckElevatedCustomACtion");
4545
if (FAILED(hr))
4646
{
47-
return ERROR_INSTALL_FAILURE;
47+
return finalize(ERROR_INSTALL_FAILURE);
4848
}
4949

5050
hr = CheckIfCurrentProcIsElevated(&bElevated);

0 commit comments

Comments
 (0)