WIXBUG:3869 FilterResult needs to apply MB_TYPEMASK to dwAllowedResults.
Sean Hall committed
May 21, 2020 at 13:15 UTC
c903a96bd8d61a375448e1a6ad7b40bab8cb24c4
1 file changed
+2
-1
src/engine/userexperience.cpp
+2
-1
@@ -1973,12 +1973,13 @@ static int FilterResult(
1973
__in int nResult
1974
)
1975
{
1976
+ DWORD dwFilteredAllowedResults = dwAllowedResults & MB_TYPEMASK;
1977
if (IDNOACTION == nResult || IDERROR == nResult) // do nothing and errors pass through.
1978
{
1979
}
1980
else
1981
{
1981
- switch (dwAllowedResults)
1982
+ switch (dwFilteredAllowedResults)
1983
{
1984
case MB_OK:
1985
nResult = IDOK;