]> code.delx.au - gnu-emacs/commitdiff
* w32fns.c (get_wm_chars): Increment counter, not pointer.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 12 Oct 2015 04:55:02 +0000 (06:55 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 12 Oct 2015 04:55:02 +0000 (06:55 +0200)
src/w32fns.c

index 99fd3ba33fdd2411a35cb4d0567bb834bcdf1afe..9b0770a99e89ba423f902f6c82771d7018aa9483 100644 (file)
@@ -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*