diff options
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r-- | src/gui_w48.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c index fd65581a0..67274ee18 100644 --- a/src/gui_w48.c +++ b/src/gui_w48.c @@ -1780,14 +1780,14 @@ process_message(void) #ifdef FEAT_CHANNEL if (msg.message == WM_NETBEANS) { - int channel_idx = channel_fd2idx((sock_T)msg.wParam); + channel_T *channel = channel_fd2channel((sock_T)msg.wParam); - if (channel_idx >= 0) + if (channel != NULL) { /* Disable error messages, they can mess up the display and throw * an exception. */ ++emsg_off; - channel_read(channel_idx, FALSE, "process_message"); + channel_read(channel, FALSE, "process_message"); --emsg_off; } return; |