Changeset 359 for libcaca


Ignore:
Timestamp:
Jan 23, 2004, 10:15:42 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • src/caca.c: + Alloc the AllocConsole?() call to fail in case the process already has

a console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/caca.c

    r344 r359  
    173173    if(_caca_driver == CACA_DRIVER_WIN32)
    174174    {
    175         if(!AllocConsole())
    176             return -1;
     175        /* This call is allowed to fail in cas we already have a console */
     176        AllocConsole();
    177177
    178178        win32_hin = GetStdHandle(STD_INPUT_HANDLE);
Note: See TracChangeset for help on using the changeset viewer.