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 );
|
CloseHandle( hModuleSnap );
|
||||||
|
DEBUGSTR( 2, L"%s completed", (restore) ? zUnhooking : zHooking );
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -281,13 +281,13 @@ int main( void )
|
|||||||
arg_out:
|
arg_out:
|
||||||
if (run && *cmd == '\0')
|
if (run && *cmd == '\0')
|
||||||
{
|
{
|
||||||
if (!_isatty( 0 ))
|
if (!shell)
|
||||||
|
run = FALSE;
|
||||||
|
else if (!_isatty( 0 ))
|
||||||
{
|
{
|
||||||
*arg = 't';
|
*arg = 't';
|
||||||
run = FALSE;
|
run = FALSE;
|
||||||
}
|
}
|
||||||
else if (!shell)
|
|
||||||
run = FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (run)
|
if (run)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user