Skip to content

Commit

Permalink
once more
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Apr 29, 2016
1 parent c002b30 commit 8fb75c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion far/changelog
@@ -1,4 +1,8 @@
drkns 29.04.2016 10:36:00 +0200 - build 4649
drkns 29.04.2016 13:55:48 +0200 - build 4650

1. И ещё раз.

drkns 29.04.2016 10:36:00 +0200 - build 4649

1. Уточнение 4644.

Expand Down
7 changes: 4 additions & 3 deletions far/execute.cpp
Expand Up @@ -204,6 +204,8 @@ Return: true/false - нашли/не нашли
*/
static bool FindModule(const string& Module, string &strDest,DWORD &ImageSubsystem,bool &Internal)
{
strDest = os::env::expand_strings(Module);

bool Result=false;
ImageSubsystem = IMAGE_SUBSYSTEM_UNKNOWN;
Internal = false;
Expand Down Expand Up @@ -698,8 +700,6 @@ bool Execute(execute_info& Info, bool FolderRun, bool Silent, const std::functio
}
}

const auto strComspec(os::env::get_variable(L"COMSPEC"));

DWORD dwSubSystem = IMAGE_SUBSYSTEM_UNKNOWN;
os::handle Process;
LPCWSTR lpVerb = nullptr;
Expand Down Expand Up @@ -792,7 +792,7 @@ bool Execute(execute_info& Info, bool FolderRun, bool Silent, const std::functio
}
}

string ComSpecParams;
string strComspec, ComSpecParams;

if (Info.ExecMode == Info.direct)
{
Expand All @@ -810,6 +810,7 @@ bool Execute(execute_info& Info, bool FolderRun, bool Silent, const std::functio
}
else
{
strComspec = os::env::get_variable(L"COMSPEC");
if (strComspec.empty())
{
Message(MSG_WARNING, 1, MSG(MError), MSG(MComspecNotFound), MSG(MOk));
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4649)m4_dnl
m4_define(BUILD,4650)m4_dnl

0 comments on commit 8fb75c2

Please sign in to comment.