-added security check to PatchFunc, should fix frogger ancient shadow

git-svn-id: http://nintendon-t.googlecode.com/svn/trunk@245 6acfca08-c3de-247c-4448-9f1a92385553