Skip to content

Commit

Permalink
Use the specified handle_id instead of STD_OUTPUT_HANDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Aug 30, 2016
1 parent e11f3d2 commit 6953d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ BOOL php_win32_console_handle_has_vt100(DWORD handle_id)
BOOL php_win32_console_handle_set_vt100(DWORD handle_id, BOOL enable)
{
BOOL result = FALSE;
HANDLE handle = handle_id ? GetStdHandle(STD_OUTPUT_HANDLE) : INVALID_HANDLE_VALUE;
HANDLE handle = handle_id ? GetStdHandle(handle_id) : INVALID_HANDLE_VALUE;

if (handle != INVALID_HANDLE_VALUE) {
DWORD mode;
Expand Down

0 comments on commit 6953d2f

Please sign in to comment.