Skip to content

Commit b114e3a

Browse files
authored
[SHELL32] Fix Control_RunDLL single comma syntax out of range dialog box numbers (reactos#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 dcf9eb0. CORE-19580 CORE-8981
1 parent afc130f commit b114e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dll/win32/shell32/wine/control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
11041104
}
11051105
}
11061106

1107-
if (sp >= applet->count && wszDialogBoxName[0] == L'\0')
1107+
if (sp >= applet->count && (wszDialogBoxName[0] == L'\0' || wszDialogBoxName[0] == L'@'))
11081108
{
11091109
sp = 0;
11101110
}

0 commit comments

Comments
 (0)