| 2880 | |
| 2881 | |
| 2882 | void CleanupEventArray(int aFinalKeyDelay) |
| 2883 | { |
| 2884 | if (sMaxEvents > (sSendMode == SM_INPUT ? MAX_INITIAL_EVENTS_SI : MAX_INITIAL_EVENTS_PB)) |
| 2885 | free(sEventSI); // Previous block was malloc'd vs. _alloc'd, so free it. Note that sEventSI and sEventPB are different views of the same variable. |
| 2886 | // The following must be done only after functions called above are done using it. But it must also be done |
| 2887 | // prior to our caller toggling capslock back on , to avoid the capslock keystroke from going into the array. |
| 2888 | sSendMode = SM_EVENT; |
| 2889 | DoKeyDelay(aFinalKeyDelay); // Do this only after resetting sSendMode above. Should be okay for mouse events too. |
| 2890 | } |
| 2891 | |
| 2892 | |
| 2893 |
no test coverage detected