From bd926bde3830e13398e761e588ec3be0544f52a9 Mon Sep 17 00:00:00 2001 From: Owen Rudge Date: Mon, 20 Jul 2009 17:03:47 -0300 Subject: [PATCH] shell32: Check if a numerical value has been passed inside quotes in Control_DoLaunch. --- dlls/shell32/control.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c index 88d6ead0d03..8337265518d 100644 --- a/dlls/shell32/control.c +++ b/dlls/shell32/control.c @@ -772,6 +772,11 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd) extraPmts = extraPmtsBuf; } + /* Now check if there had been a numerical value in the extra params */ + if ((*extraPmts == '@') && (sp == -1)) { + sp = atoiW(extraPmts + 1); + } + TRACE("cmd %s, extra %s, sp %d\n", debugstr_w(buffer), debugstr_w(extraPmts), sp); Control_LoadApplet(hWnd, buffer, panel); -- 2.11.4.GIT