Fixed installing into redirected CMD.EXE.
This commit is contained in:
parent
790de57763
commit
f3c69d9d21
1
ANSI.c
1
ANSI.c
@ -1089,6 +1089,7 @@ BOOL HookAPIAllMod( PHookFn Hooks, BOOL restore )
|
||||
}
|
||||
}
|
||||
CloseHandle( hModuleSnap );
|
||||
DEBUGSTR( 2, L"%s completed", (restore) ? zUnhooking : zHooking );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -281,13 +281,13 @@ int main( void )
|
||||
arg_out:
|
||||
if (run && *cmd == '\0')
|
||||
{
|
||||
if (!_isatty( 0 ))
|
||||
if (!shell)
|
||||
run = FALSE;
|
||||
else if (!_isatty( 0 ))
|
||||
{
|
||||
*arg = 't';
|
||||
run = FALSE;
|
||||
}
|
||||
else if (!shell)
|
||||
run = FALSE;
|
||||
}
|
||||
|
||||
if (run)
|
||||
|
Loading…
x
Reference in New Issue
Block a user