mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +00:00
[USERINIT]
- Fix Startup Folder - ShellExecuteEx needs lots of work See issue #4568 for more details. svn path=/trunk/; revision=47035
This commit is contained in:
parent
3c0e9dffbc
commit
5fb94ed717
1 changed files with 3 additions and 3 deletions
|
@ -212,7 +212,6 @@ StartAutoApplications(
|
||||||
WARN("FindFirstFile(%s) failed with error %lu\n", debugstr_w(szPath), GetLastError());
|
WARN("FindFirstFile(%s) failed with error %lu\n", debugstr_w(szPath), GetLastError());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
szPath[len] = L'\0';
|
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -220,9 +219,10 @@ StartAutoApplications(
|
||||||
{
|
{
|
||||||
memset(&ExecInfo, 0x0, sizeof(SHELLEXECUTEINFOW));
|
memset(&ExecInfo, 0x0, sizeof(SHELLEXECUTEINFOW));
|
||||||
ExecInfo.cbSize = sizeof(ExecInfo);
|
ExecInfo.cbSize = sizeof(ExecInfo);
|
||||||
|
wcscpy(&szPath[len+1], findData.cFileName);
|
||||||
ExecInfo.lpVerb = L"open";
|
ExecInfo.lpVerb = L"open";
|
||||||
ExecInfo.lpFile = findData.cFileName;
|
ExecInfo.lpFile = szPath;
|
||||||
ExecInfo.lpDirectory = szPath;
|
ExecInfo.lpDirectory = NULL;
|
||||||
TRACE("Executing %s in directory %s\n",
|
TRACE("Executing %s in directory %s\n",
|
||||||
debugstr_w(findData.cFileName), debugstr_w(szPath));
|
debugstr_w(findData.cFileName), debugstr_w(szPath));
|
||||||
ShellExecuteExW(&ExecInfo);
|
ShellExecuteExW(&ExecInfo);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue