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

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 dcf9eb060a. CORE-19580 CORE-8981
This commit is contained in:
Marcin Jabłoński 2025-01-04 17:28:12 +01:00 committed by GitHub
parent afc130ff3f
commit b114e3a051
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}