Update zimpatch.cpp

Added some code