Skip to content

Commit

Permalink
one more executor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed May 16, 2016
1 parent 638459b commit 2f00dab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion far/changelog
@@ -1,4 +1,8 @@
drkns 15.05.2016 22:00:35 +0200 - build 4674 drkns 16.05.2016 22:55:36 +0200 - build 4675

1. Ещё одно уточнение работы запускателя.

drkns 15.05.2016 22:00:35 +0200 - build 4674


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


Expand Down
7 changes: 6 additions & 1 deletion far/execute.cpp
Expand Up @@ -693,7 +693,12 @@ bool Execute(execute_info& Info, bool FolderRun, bool Silent, const std::functio
{ {
if (const auto ExtPtr = wcsrchr(PointToName(Str), L'.')) if (const auto ExtPtr = wcsrchr(PointToName(Str), L'.'))
{ {
if (!(!StrCmpI(ExtPtr, L".exe") || !StrCmpI(ExtPtr, L".com") || IsBatchExtType(ExtPtr))) if (IsBatchExtType(ExtPtr))
{
Subsystem = IMAGE_SUBSYSTEM_WINDOWS_CUI;
return true;
}
else
{ {
DWORD SaError = 0, SaSubSystem = 0; DWORD SaError = 0, SaSubSystem = 0;
Verb = GetShellAction(Str, SaSubSystem, SaError); Verb = GetShellAction(Str, SaSubSystem, SaError);
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4674)m4_dnl m4_define(BUILD,4675)m4_dnl

0 comments on commit 2f00dab

Please sign in to comment.