[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 19:28:12 +03:00
committed by GitHub
parent afc130ff3f
commit b114e3a051
+1 -1
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;
}