Fixed installing into redirected CMD.EXE.

This commit is contained in:
Jason Hood 2012-01-07 15:34:43 +10:00
parent 790de57763
commit f3c69d9d21
2 changed files with 4 additions and 3 deletions

1
ANSI.c
View File

@ -1089,6 +1089,7 @@ BOOL HookAPIAllMod( PHookFn Hooks, BOOL restore )
}
}
CloseHandle( hModuleSnap );
DEBUGSTR( 2, L"%s completed", (restore) ? zUnhooking : zHooking );
return TRUE;
}

View File

@ -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)