Browse Source

Cygwin: console: device context is process private

Make sure device context is not copied to forked process.
It is a process-specific datastructure.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
sh3port
Corinna Vinschen 1 year ago
parent
commit
85c030a75f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      winsup/cygwin/fhandler_console.cc

+ 1
- 1
winsup/cygwin/fhandler_console.cc View File

@@ -1982,7 +1982,7 @@ static const wchar_t replacement_char[NUM_REPLACEMENT_CHARS] =
/* nFont member is always 0 so we have to use the facename. */
static WCHAR cons_facename[LF_FACESIZE];
static int rp_char_idx;
static HDC cdc;
static NO_COPY HDC cdc;

static int CALLBACK
enum_proc (const LOGFONTW *lf, const TEXTMETRICW *tm,

Loading…
Cancel
Save