Crash when standard shift-E screen print is made
When create_screenshot(0) is called, DMCP corrupts the memory space for length ERROR_MESSAGE_LENGTH + AIM_BUFFER_LENGTH + NIM_BUFFER_LENGTH from the beginning of the error message buffer. This causes a crash when a user calls the standard shift-E in AIM.
I made a bugfix. If you don't want the bug fixed this way, you can also prevent create_screenshot to be called while in AIM mode.