mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[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 todcf9eb0
. 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:
parent
2a2d8f9f77
commit
755aa24a95
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue