513{
517 INT file1_size, file2_size;
519 DWORD cbAvail, cbRead;
524
525 file1_size =
pEntry->file1_size;
526 file2_size =
pEntry->file2_size;
527 if (file1_size == -1)
529 if (file2_size == -1)
531
535
539
542
546
548
552
553 ok(
ret,
"Line %d: CreateProcessA failed\n",
pEntry->lineno);
554
555#define TIMEOUT (10 * 1000)
557
560 {
561 if (cbAvail > 0)
562 {
563 if (cbAvail > sizeof(szOutput))
564 cbAvail = sizeof(szOutput) - 1;
565
566 ReadFile(hOutputRead, szOutput, cbAvail, &cbRead,
NULL);
567 }
568 }
570
572 ok(dwExitCode ==
pEntry->ret,
"Line %d: dwExitCode was 0x%lx\n",
pEntry->lineno, dwExitCode);
573
575 {
579 printf(
"---UP TO HERE\n");
580 }
581 else
582 {
584 }
585
588
596
599}
#define ok_int(expression, result)
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
INT WINAPI StrCmpNIA(LPCSTR lpszStr, LPCSTR lpszComp, INT iLen)
#define ReadFile(a, b, c, d, e)
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI GetExitCodeProcess(IN HANDLE hProcess, IN LPDWORD lpExitCode)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessA(LPCSTR lpApplicationName, LPSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCSTR lpCurrentDirectory, LPSTARTUPINFOA lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
BOOL WINAPI PathFileExistsA(const char *path)
int CDECL fclose(FILE *file)
FILE *CDECL fopen(const char *path, const char *mode)
size_t CDECL fwrite(const void *ptr, size_t size, size_t nmemb, FILE *file)
_ACRTIMP size_t __cdecl strlen(const char *)
static BOOL PrepareForRedirect(STARTUPINFOA *psi, PHANDLE phInputWrite, PHANDLE phOutputRead, PHANDLE phErrorRead)
static void ConvertOutput(LPSTR psz)
BOOL WINAPI PeekNamedPipe(HANDLE hNamedPipe, LPVOID lpBuffer, DWORD nBufferSize, LPDWORD lpBytesRead, LPDWORD lpTotalBytesAvail, LPDWORD lpBytesLeftThisMessage)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
#define STD_OUTPUT_HANDLE