瀏覽代碼

* src/caca.c:

+ Alloc the AllocConsole() call to fail in case the process already has
      a console.
tags/v0.99.beta14
Sam Hocevar sam 21 年之前
父節點
當前提交
4dcb3f7442
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/caca.c

+ 2
- 2
src/caca.c 查看文件

@@ -172,8 +172,8 @@ int caca_init(void)
#if defined(USE_WIN32)
if(_caca_driver == CACA_DRIVER_WIN32)
{
if(!AllocConsole())
return -1;
/* This call is allowed to fail in cas we already have a console */
AllocConsole();

win32_hin = GetStdHandle(STD_INPUT_HANDLE);
win32_hout = CreateFile("CONOUT$", GENERIC_READ | GENERIC_WRITE,


Loading…
取消
儲存