[0.4.15][SHELL32] Fix Control_RunDLL single comma syntax out of range dialog box numbers (#7595)

Fixes CORE-19580 and CORE-8981.

If an out of range dialog box number was given in a single comma syntax
for Control_RunDLL(), it should be set to 0 to launch the default dialog
box instead of failing. Addendum to dcf9eb0.

This is a cherry pick of commit:
b114e3a051 [SHELL32] Fix Control_RunDLL single comma syntax out of range dialog box numbers (#7595)

Co-Authored-By: Marcin Jabłoński <24442148+TheNNX@users.noreply.github.com>
This commit is contained in:
Carl J. Bialorucki 2025-02-24 22:58:53 -07:00
parent 2a2d8f9f77
commit 755aa24a95

View file

@ -1104,7 +1104,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
}
}
if (sp >= applet->count && wszDialogBoxName[0] == L'\0')
if (sp >= applet->count && (wszDialogBoxName[0] == L'\0' || wszDialogBoxName[0] == L'@'))
{
sp = 0;
}