Changeset 4651 for zzuf


Ignore:
Timestamp:
Sep 21, 2010, 1:48:51 AM (9 years ago)
Author:
Sam Hocevar
Message:

Divert AttachConsole?() and AllocConsole?() for debugging purposes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/sys.c

    r4649 r4651  
    4848    return ret;
    4949}
     50
     51BOOL (WINAPI *AllocConsole_orig)(void);
     52BOOL WINAPI AllocConsole_new(void)
     53{
     54    fprintf(stderr, "Allocating console\n");
     55    return AllocConsole_orig();
     56}
     57
     58BOOL (WINAPI *AttachConsole_orig)(DWORD);
     59BOOL WINAPI AttachConsole_new(DWORD d)
     60{
     61    fprintf(stderr, "Attaching console\n");
     62    return AttachConsole_orig(d);
     63}
    5064#endif
    5165
     
    8195    {
    8296        { "kernel32.dll", "LoadLibraryA", &LoadLibraryA_orig, LoadLibraryA_new },
     97        { "kernel32.dll", "AllocConsole", &AllocConsole_orig, AllocConsole_new },
     98        { "kernel32.dll", "AttachConsole", &AttachConsole_orig, AttachConsole_new },
    8399    };
    84100
Note: See TracChangeset for help on using the changeset viewer.