mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:23:34 +00:00
fix for incorrect start directories
svn path=/trunk/; revision=7552
This commit is contained in:
parent
877d88090f
commit
3a8b4c506b
1 changed files with 7 additions and 3 deletions
|
@ -232,8 +232,12 @@ static HRESULT SHELL_ResolveShortCutW(LPWSTR wcmd, LPWSTR args, LPWSTR wdir, HWN
|
||||||
|
|
||||||
if (SUCCEEDED(hr)) {
|
if (SUCCEEDED(hr)) {
|
||||||
/* get command line arguments, working directory and display mode if available */
|
/* get command line arguments, working directory and display mode if available */
|
||||||
IShellLinkW_GetWorkingDirectory(psl, wdir, MAX_PATH);
|
if (SUCCEEDED(IShellLinkW_GetWorkingDirectory(psl, wdir, MAX_PATH)))
|
||||||
IShellLinkW_GetArguments(psl, args, MAX_PATH);
|
;
|
||||||
|
|
||||||
|
if (SUCCEEDED(IShellLinkW_GetArguments(psl, args, MAX_PATH)))
|
||||||
|
;
|
||||||
|
|
||||||
IShellLinkW_GetShowCmd(psl, pshowcmd);
|
IShellLinkW_GetShowCmd(psl, pshowcmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -296,7 +300,7 @@ static UINT SHELL_ExecuteA(const char *lpCmd, void *env, BOOL shWait,
|
||||||
startup.wShowWindow = psei->nShow;
|
startup.wShowWindow = psei->nShow;
|
||||||
|
|
||||||
if (CreateProcessA(NULL, (LPSTR)lpCmd, NULL, NULL, FALSE, 0,
|
if (CreateProcessA(NULL, (LPSTR)lpCmd, NULL, NULL, FALSE, 0,
|
||||||
env, psei->lpDirectory, &startup, &info))
|
env, *psei->lpDirectory? psei->lpDirectory: NULL, &startup, &info))
|
||||||
{
|
{
|
||||||
/* Give 30 seconds to the app to come up, if desired. Probably only needed
|
/* Give 30 seconds to the app to come up, if desired. Probably only needed
|
||||||
when starting app immediately before making a DDE connection. */
|
when starting app immediately before making a DDE connection. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue