View Single Post
10-30-17, 08:45 AM   #2
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
What you're doing is not safe. Any time the default UI calls your replacement functions the execution path becomes tainted afterwards. If the call to PlaySound is eventually followed by some protected function call from signed code down the path, then it's going to break.

In cases where you want to replace an API function, you need to make sure that the function isn't used in any execution path that ultimately does something protected.
__________________
  Reply With Quote