Module: wine Branch: master Commit: bd926bde3830e13398e761e588ec3be0544f52a9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd926bde3830e13398e761e588...
Author: Owen Rudge owen@owenrudge.net Date: Mon Jul 20 17:03:47 2009 -0300
shell32: Check if a numerical value has been passed inside quotes in Control_DoLaunch.
---
dlls/shell32/control.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c index 88d6ead..8337265 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);