From: Juanma Barranquero Date: Mon, 12 Oct 2015 04:55:02 +0000 (+0200) Subject: * w32fns.c (get_wm_chars): Increment counter, not pointer. X-Git-Tag: emacs-25.0.90~1157 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3f1c88de2ec78fba14e2b28ce43939017b723083;p=emacs.git * w32fns.c (get_wm_chars): Increment counter, not pointer. --- diff --git a/src/w32fns.c b/src/w32fns.c index 99fd3ba33fd..9b0770a99e8 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -2917,7 +2917,7 @@ get_wm_chars (HWND aWnd, int *buf, int buflen, int ignore_ctrl, int ctrl, /* Non-character payload in a WM_CHAR (Ctrl-something pressed, see above). Ignore, and report. */ if (ctrl_cnt) - *ctrl_cnt++; + (*ctrl_cnt)++; continue; } /* Traditionally, Emacs would ignore the character payload of VK_NUMPAD*