@joebigelow / wix / commits / 59d35997

Fix runtime parsing of ExePackage/@ExitCode for negative values.

Fixes #4176

Sean Hall committed Jun 13, 2021 at 21:27 UTC 59d35997bac59fbb4c5ee68cddfd8e5470da0d51
1 file changed +1 -1
src/burn/engine/exeengine.cpp
+1 -1
@@ -637,7 +637,7 @@ static HRESULT ParseExitCodesFromXml(
637 }
638 else
639 {
640 - hr = StrStringToUInt32(scz, 0, (UINT*) &pExitCode->dwCode);
640 + hr = StrStringToInt32(scz, 0, reinterpret_cast<INT*>(&pExitCode->dwCode));
641 ExitOnFailure(hr, "Failed to parse @Code value: %ls", scz);
642 }
643