Ignore:
Timestamp:
Oct 5, 2010, 2:16:54 AM (10 years ago)
Author:
Sam Hocevar
Message:

Inherit stdin/stdout/stderr in the child process under Win32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/lib-win32.c

    r4663 r4664  
    6565           HANDLE hTemplateFile)
    6666{
    67     fprintf(stderr, "CreateFileA(%s)\n", lpFileName);
    68     return ORIG(CreateFileA)(lpFileName, dwDesiredAccess, dwShareMode,
    69                              lpSecurityAttributes, dwCreationDisposition,
    70                              dwFlagsAndAttributes, hTemplateFile);
     67    HANDLE ret;
     68    ret = ORIG(CreateFileA)(lpFileName, dwDesiredAccess, dwShareMode,
     69                            lpSecurityAttributes, dwCreationDisposition,
     70                            dwFlagsAndAttributes, hTemplateFile);
     71    debug("%s(\"%s\", %x, %x, ..., %x, %x, ...) = [%i]",
     72          __func__, lpFileName, dwDesiredAccess, dwShareMode,
     73          dwCreationDisposition, dwFlagsAndAttributes, (int)ret); \
     74    return ret;
    7175}
    7276#endif
Note: See TracChangeset for help on using the changeset viewer.